[PATCH] drivers: rtc: fix ptr_ret.cocci warnings
Alexandre Belloni
alexandre.belloni at free-electrons.com
Tue Aug 11 08:54:48 PDT 2015
On 31/07/2015 at 15:01:04 +0530, Viresh Kumar wrote :
> From: kbuild test robot <fengguang.wu at intel.com>
>
> drivers/rtc/rtc-gemini.c:151: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
>
> Signed-off-by: Fengguang Wu <fengguang.wu at intel.com>
> Signed-off-by: Viresh Kumar <viresh.kumar at linaro.org>
> ---
> Got a cleanup patch from Fengguang, maybe we can apply this too.
>
> rtc-gemini.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
Applied, thanks.
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the linux-arm-kernel
mailing list