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