crypto: arm/aes-neonbs - Use PTR_ERR_OR_ZERO()
authorGomonovych, Vasyl <gomonovych@gmail.com>
Mon, 27 Nov 2017 23:06:06 +0000 (00:06 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 11 Dec 2017 11:36:56 +0000 (22:36 +1100)
commit26d85e5f3b68f8526b516959a7dd4d1fbab00fd0
tree9390c2a75067d8095bcea9c302c524d53e547fbc
parentb5b9007730ce1d90deaf25d7f678511550744bdc
crypto: arm/aes-neonbs - Use PTR_ERR_OR_ZERO()

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 <gomonovych@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/aes-neonbs-glue.c