Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1205233 > unrolled thread

Re: [PATCH] drivers: rtc: fix ptr_ret.cocci warnings

Started byAlexandre Belloni <alexandre.belloni@free-electrons.com>
First post2015-08-11 18:00 +0200
Last post2015-08-11 18:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] drivers: rtc: fix ptr_ret.cocci warnings Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-08-11 18:00 +0200

#1205233 — Re: [PATCH] drivers: rtc: fix ptr_ret.cocci warnings

FromAlexandre Belloni <alexandre.belloni@free-electrons.com>
Date2015-08-11 18:00 +0200
SubjectRe: [PATCH] drivers: rtc: fix ptr_ret.cocci warnings
Message-ID<pWk83-1c5-29@gated-at.bofh.it>
On 31/07/2015 at 15:01:04 +0530, Viresh Kumar wrote :
> From: kbuild test robot <fengguang.wu@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@intel.com>
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web