From: Herbert Xu Subject: Re: [PATCH] crypto: arm/aes-neonbs Use PTR_ERR_OR_ZERO() Date: Mon, 11 Dec 2017 22:44:11 +1100 Message-ID: <20171211114411.GB12014@gondor.apana.org.au> References: <1511823966-5815-1-git-send-email-gomonovych@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: davem@davemloft.net, linux@armlinux.org.uk, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org To: Vasyl Gomonovych Return-path: Received: from [128.1.224.119] ([128.1.224.119]:43894 "EHLO ringil.hmeau.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1750836AbdLKLow (ORCPT ); Mon, 11 Dec 2017 06:44:52 -0500 Content-Disposition: inline In-Reply-To: <1511823966-5815-1-git-send-email-gomonovych@gmail.com> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Tue, Nov 28, 2017 at 12:06:06AM +0100, Vasyl Gomonovych wrote: > Fix ptr_ret.cocci warnings: > arch/arm/crypto/aes-neonbs-glue.c:184:1-3: WARNING: PTR_ERR_OR_ZERO can be used > arch/arm/crypto/aes-neonbs-glue.c:261: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 Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt