[rtc-linux] Re: [PATCH] drivers: rtc: fix ptr_ret.cocci warnings
From: Alexandre Belloni <hidden>
Date: 2015-08-11 15:54:51
Also in:
linux-arm-kernel, lkml
From: Alexandre Belloni <hidden>
Date: 2015-08-11 15:54:51
Also in:
linux-arm-kernel, lkml
On 31/07/2015 at 15:01:04 +0530, Viresh Kumar wrote :
From: kbuild test robot <redacted> 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 <redacted> Signed-off-by: Viresh Kumar <viresh.kumar@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 -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.