Re: [PATCH] rtc: pcf8523: fix ptr_ret.cocci warnings
From: Nobuhiro Iwamatsu
Date: Tue Dec 17 2019 - 06:09:58 EST
Hi,
2019å12æ17æ(ç) 8:04 kbuild test robot <lkp@xxxxxxxxx>:
>
> From: kbuild test robot <lkp@xxxxxxxxx>
>
> drivers/rtc/rtc-pcf8523.c:361: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: 93966243cf90 ("rtc: pcf8523: Remove struct pcf8523")
> CC: Nobuhiro Iwamatsu <iwamatsu@xxxxxxxxxxx>
> Signed-off-by: kbuild test robot <lkp@xxxxxxxxx>
Acked-by: Nobuhiro Iwamatsu <iwamatsu@xxxxxxxxxxx>
Best regards,
Nobuhiro