diff options
author | Shukun Tan <tanshukun1@huawei.com> | 2019-10-21 15:41:01 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-10-26 02:09:59 +1100 |
commit | e10966981f7258dd7283f3028f414dd127bb5bfc (patch) | |
tree | 5dbce0c4c29aca03c6eba134150a4b3f24f6abe6 /drivers | |
parent | ee1788c61546b04763df608f8333ebd827119a02 (diff) | |
download | linux-stable-e10966981f7258dd7283f3028f414dd127bb5bfc.tar.gz linux-stable-e10966981f7258dd7283f3028f414dd127bb5bfc.tar.bz2 linux-stable-e10966981f7258dd7283f3028f414dd127bb5bfc.zip |
crypto: hisilicon - Fix using plain integer as NULL pointer
This patch fix sparse warning:
zip_crypto.c:425:26: warning: Using plain integer as NULL pointer
Replaces assignment of 0 to pointer with NULL assignment.
Signed-off-by: Shukun Tan <tanshukun1@huawei.com>
Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/hisilicon/zip/zip_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/hisilicon/zip/zip_crypto.c b/drivers/crypto/hisilicon/zip/zip_crypto.c index 9d31b80969f2..795428c1d07e 100644 --- a/drivers/crypto/hisilicon/zip/zip_crypto.c +++ b/drivers/crypto/hisilicon/zip/zip_crypto.c @@ -42,7 +42,7 @@ enum hisi_zip_alg_type { #define TO_HEAD(req_type) \ (((req_type) == HZIP_ALG_TYPE_ZLIB) ? zlib_head : \ - ((req_type) == HZIP_ALG_TYPE_GZIP) ? gzip_head : 0) \ + ((req_type) == HZIP_ALG_TYPE_GZIP) ? gzip_head : NULL) \ struct hisi_zip_req { struct acomp_req *req; |