OSDN Git Service

crypto: hisilicon - init curr_sgl_dma to fix compile warning
authorZhou Wang <wangzhou1@hisilicon.com>
Wed, 14 Aug 2019 09:28:37 +0000 (17:28 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Aug 2019 11:52:12 +0000 (21:52 +1000)
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>
drivers/crypto/hisilicon/sgl.c

index 8ef7679..e083d17 100644 (file)
@@ -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);