OSDN Git Service

crypto: chcr - checking for IS_ERR() instead of NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 1 Dec 2016 20:49:37 +0000 (23:49 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 7 Dec 2016 12:01:11 +0000 (20:01 +0800)
commit9a97ffd49ca9421c17ecde672a58b618d61f4f58
tree81a9130f48b93ca884cf3ea21aad044192bbdc8a
parentb80609a161f05caec677216f74188701a3b23149
crypto: chcr - checking for IS_ERR() instead of NULL

The create_hash_wr() function never returns error pointers.  It returns
NULL on error.

Fixes: 358961d1cd1e ("crypto: chcr - Added new structure chcr_wr")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_algo.c