From mboxrd@z Thu Jan 1 00:00:00 1970 From: alexandre.belloni@free-electrons.com (Alexandre Belloni) Date: Wed, 29 Nov 2017 21:59:36 +0100 Subject: [PATCH] pcmcia: at91_cf: Use PTR_ERR_OR_ZERO() In-Reply-To: <1511882500-7285-1-git-send-email-gomonovych@gmail.com> References: <1511882500-7285-1-git-send-email-gomonovych@gmail.com> Message-ID: <20171129205936.GP21126@piout.net> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 28/11/2017 at 16:21:40 +0100, Vasyl Gomonovych wrote: > Fix ptr_ret.cocci warnings: > drivers/pcmcia/at91_cf.c:239: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: Vasyl Gomonovych > --- > drivers/pcmcia/at91_cf.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com