Thread (2 messages) 2 messages, 2 authors, 2017-12-11

Re: [PATCH] crypto: arm/aes-neonbs Use PTR_ERR_OR_ZERO()

flat view

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2017-12-11 11:44:53
Also in: linux-arm-kernel, lkml

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 <redacted>
Patch applied.  Thanks.
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help