crypto: inside-secure - Use PTR_ERR_OR_ZERO in safexcel_xcbcmac_cra_init()
authorYueHaibing <yuehaibing@huawei.com>
Wed, 9 Oct 2019 12:06:21 +0000 (12:06 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Oct 2019 07:49:41 +0000 (18:49 +1100)
commit27018ab14bea5ae44df4de119feefbcb37ae4f85
tree320a0320c56094daf2b3efbdbb02df073c45ca46
parent965d7286d871b622dcaaafd2e2346b11631584ff
crypto: inside-secure - Use PTR_ERR_OR_ZERO in safexcel_xcbcmac_cra_init()

Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Antoine Tenart <antoine.tenart@ack.tf>
Acked-by: Pascal van Leeuwen <pvanleeuwen@verimatrix.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_hash.c