crypto: caam/qi - Change a couple IS_ERR_OR_NULL() checks to IS_ERR()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 28 Mar 2019 14:36:01 +0000 (17:36 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 8 Apr 2019 06:36:16 +0000 (14:36 +0800)
commitffecb696d462de995fad2ad4429a509f439ddef0
tree79bf9df0025e47231a41c686e9c5e5a94fbe83f9
parent8a3719a5b9ef55724b0b0e3667ff542f1d301cfd
crypto: caam/qi - Change a couple IS_ERR_OR_NULL() checks to IS_ERR()

create_caam_req_fq() doesn't return NULL pointers so there is no need to
check.  The NULL checks are problematic because it's hard to say how a
NULL return should be handled, so removing the checks is a nice cleanup.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/qi.c