crypto: hisilicon - fix the check on dma address
authorHui Tang <tanghui20@huawei.com>
Fri, 19 Mar 2021 10:45:05 +0000 (18:45 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Mar 2021 09:15:57 +0000 (20:15 +1100)
commita9214b0b6ed245b0c5239e0576b7de509815c2a0
treee91577fde9558cce5aa3e76b640e396f277a2059
parented48466d3ff94fac09ca5c521a24501eb5908277
crypto: hisilicon - fix the check on dma address

System may be able to get physical address of zero if not reserved by
firmware.

The dma address obtained by 'dma_alloc_coherent' is valid, since already
checking cpu va before, so do not check again.

Signed-off-by: Hui Tang <tanghui20@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/hpre/hpre_crypto.c
drivers/crypto/hisilicon/qm.c
drivers/crypto/hisilicon/sec2/sec_crypto.c