From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.free-electrons.com (down.free-electrons.com. [37.187.137.238]) by gmr-mx.google.com with ESMTP id gt9si97771wib.2.2015.08.11.08.54.49 for ; Tue, 11 Aug 2015 08:54:49 -0700 (PDT) Date: Tue, 11 Aug 2015 17:54:48 +0200 From: Alexandre Belloni To: Viresh Kumar Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, kbuild test robot , Alessandro Zummo , Hans Ulli Kroll , "moderated list:ARM/CORTINA SYSTEMS GEMINI ARM ARCHITECTURE" , "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" Subject: [rtc-linux] Re: [PATCH] drivers: rtc: fix ptr_ret.cocci warnings Message-ID: <20150811155448.GU3411@piout.net> References: <20150731091703.GA140615@lkp-ib03> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 In-Reply-To: <20150731091703.GA140615@lkp-ib03> Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , On 31/07/2015 at 15:01:04 +0530, Viresh Kumar wrote : > From: kbuild test robot > > 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 > Signed-off-by: Viresh Kumar > --- > 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. From mboxrd@z Thu Jan 1 00:00:00 1970 From: alexandre.belloni@free-electrons.com (Alexandre Belloni) Date: Tue, 11 Aug 2015 17:54:48 +0200 Subject: [PATCH] drivers: rtc: fix ptr_ret.cocci warnings In-Reply-To: <20150731091703.GA140615@lkp-ib03> References: <20150731091703.GA140615@lkp-ib03> Message-ID: <20150811155448.GU3411@piout.net> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 31/07/2015 at 15:01:04 +0530, Viresh Kumar wrote : > From: kbuild test robot > > 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 > Signed-off-by: Viresh Kumar > --- > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965337AbbHKPyv (ORCPT ); Tue, 11 Aug 2015 11:54:51 -0400 Received: from down.free-electrons.com ([37.187.137.238]:36991 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965076AbbHKPyu (ORCPT ); Tue, 11 Aug 2015 11:54:50 -0400 Date: Tue, 11 Aug 2015 17:54:48 +0200 From: Alexandre Belloni To: Viresh Kumar Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, kbuild test robot , Alessandro Zummo , Hans Ulli Kroll , "moderated list:ARM/CORTINA SYSTEMS GEMINI ARM ARCHITECTURE" , "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" Subject: Re: [PATCH] drivers: rtc: fix ptr_ret.cocci warnings Message-ID: <20150811155448.GU3411@piout.net> References: <20150731091703.GA140615@lkp-ib03> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150731091703.GA140615@lkp-ib03> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/07/2015 at 15:01:04 +0530, Viresh Kumar wrote : > From: kbuild test robot > > 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 > Signed-off-by: Viresh Kumar > --- > 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