diff --git a/display/composer/v1_3/hdi_impl/display_composer_hdi_impl.h b/display/composer/v1_3/hdi_impl/display_composer_hdi_impl.h index d0e182ffbe411f4168d342158e02e8d9512ac049..1c9b30f15c266163d713e5970c2fa01ad5b9f5ea 100644 --- a/display/composer/v1_3/hdi_impl/display_composer_hdi_impl.h +++ b/display/composer/v1_3/hdi_impl/display_composer_hdi_impl.h @@ -116,7 +116,6 @@ public: const BufferHandle* inHandle, const int32_t acquireFence) override { COMPOSER_CHECK_NULLPTR_RETURN(hdi_v1_3_); - COMPOSER_CHECK_NULLPTR_RETURN(inHandle); sptr hdiBuffer = new NativeBuffer(inHandle); COMPOSER_CHECK_NULLPTR_RETURN(hdiBuffer); sptr hdiFence(new HdifdParcelable); @@ -133,8 +132,6 @@ public: if (ret != DISPLAY_SUCCESS) { return ret; } - COMPOSER_CHECK_NULLPTR_RETURN(hdiFence); - releaseFence = hdiFence->Move(); return DISPLAY_SUCCESS; } protected: