summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/hisilicon
diff options
context:
space:
mode:
authorZhou Wang <wangzhou1@hisilicon.com>2019-08-14 11:28:37 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2019-08-15 13:52:12 +0200
commit5c0861989cc197c29433915774f805299a497977 (patch)
tree396496123196d1767abac4da0fed8e5c090ef817 /drivers/crypto/hisilicon
parentcrypto: hisilicon - add dependency for CRYPTO_DEV_HISI_ZIP (diff)
downloadlinux-5c0861989cc197c29433915774f805299a497977.tar.xz
linux-5c0861989cc197c29433915774f805299a497977.zip
crypto: hisilicon - init curr_sgl_dma to fix compile warning
Just init curr_sgl_dma = 0 to avoid compile warning. Fixes: dfed0098ab91 ("crypto: hisilicon - add hardware SGL support") Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hisilicon')
-rw-r--r--drivers/crypto/hisilicon/sgl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/hisilicon/sgl.c b/drivers/crypto/hisilicon/sgl.c
index 8ef7679a365e..e083d172b618 100644
--- a/drivers/crypto/hisilicon/sgl.c
+++ b/drivers/crypto/hisilicon/sgl.c
@@ -150,7 +150,7 @@ hisi_acc_sg_buf_map_to_hw_sgl(struct device *dev,
u32 index, dma_addr_t *hw_sgl_dma)
{
struct hisi_acc_hw_sgl *curr_hw_sgl;
- dma_addr_t curr_sgl_dma;
+ dma_addr_t curr_sgl_dma = 0;
struct acc_hw_sge *curr_hw_sge;
struct scatterlist *sg;
int sg_n = sg_nents(sgl);