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


Groups > linux.kernel > #1205233

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

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod
From Alexandre Belloni <alexandre.belloni@free-electrons.com>
Newsgroups linux.kernel
Subject Re: [PATCH] drivers: rtc: fix ptr_ret.cocci warnings
Date Tue, 11 Aug 2015 18:00:03 +0200
Message-ID <pWk83-1c5-29@gated-at.bofh.it> (permalink)
References <pSeaS-mJ-27@gated-at.bofh.it> <pSeXf-1yJ-9@gated-at.bofh.it>
X-Original-To Viresh Kumar <viresh.kumar@linaro.org>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.23 (2014-03-12)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 29
Organization linux.* mail to news gateway
X-Original-Cc akpm@linux-foundation.org, linux-kernel@vger.kernel.org, kbuild test robot <fengguang.wu@intel.com>, Alessandro Zummo <a.zummo@towertech.it>, Hans Ulli Kroll <ulli.kroll@googlemail.com>, "moderated list:ARM/CORTINA SYSTEMS GEMINI ARM ARCHITECTURE" <linux-arm-kernel@lists.infradead.org>, "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" <rtc-linux@googlegroups.com>
X-Original-Date Tue, 11 Aug 2015 17:54:48 +0200
X-Original-Message-ID <20150811155448.GU3411@piout.net>
X-Original-References <cdfa3fb76901fe1c4a5756e7e64cb3370cf6317a.1438331416.git.viresh.kumar@linaro.org> <20150731091703.GA140615@lkp-ib03>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1205233

Show key headers only | View raw


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/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web