[PATCH] media: exynos4-is: fix ptr_ret.cocci warnings

Sylwester Nawrocki s.nawrocki at samsung.com
Mon Aug 10 05:35:07 EDT 2020


On 19.07.2020 15:49, kernel test robot wrote:
> From: kernel test robot <lkp at intel.com>
> 
> drivers/media/platform/exynos4-is/media-dev.c:1273:1-3: WARNING: PTR_ERR_OR_ZERO can be used
> 
> 
>  Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
> 
> Generated by: scripts/coccinelle/api/ptr_ret.cocci
 
> Fixes: 18ffec750578 ("media: exynos4-is: Add missed check for pinctrl_lookup_state()")

The above commit is incorrect, I'm going to post a patch that
removes the "idle" pinctrl state handling code from the driver
so there is no need to apply the $subject patch.

-- 
Thanks,
Sylwester



More information about the linux-arm-kernel mailing list