crypto: inside-secure - Use PTR_ERR_OR_ZERO() to simplify code
authorzhengbin <zhengbin13@huawei.com>
Mon, 18 Nov 2019 10:53:56 +0000 (18:53 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Dec 2019 08:34:44 +0000 (16:34 +0800)
commit3f61b0527b4e3df06fc8b41dded7ce7bbd3f0023
tree6cf5f53a7b770282550cd9542c6856ce1629b675
parente42617b825f8073569da76dc4510bfa019b1c35a
crypto: inside-secure - Use PTR_ERR_OR_ZERO() to simplify code

Fixes coccicheck warning:

drivers/crypto/inside-secure/safexcel_cipher.c:2534:1-3: WARNING: PTR_ERR_OR_ZERO can be used

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_cipher.c