Commit 5c086198 authored by Zhou Wang's avatar Zhou Wang Committed by Herbert Xu

crypto: hisilicon - init curr_sgl_dma to fix compile warning

Just init curr_sgl_dma = 0 to avoid compile warning.

Fixes: dfed0098 ("crypto: hisilicon - add hardware SGL support")
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarZhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent db01e481
...@@ -150,7 +150,7 @@ hisi_acc_sg_buf_map_to_hw_sgl(struct device *dev, ...@@ -150,7 +150,7 @@ hisi_acc_sg_buf_map_to_hw_sgl(struct device *dev,
u32 index, dma_addr_t *hw_sgl_dma) u32 index, dma_addr_t *hw_sgl_dma)
{ {
struct hisi_acc_hw_sgl *curr_hw_sgl; 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 acc_hw_sge *curr_hw_sge;
struct scatterlist *sg; struct scatterlist *sg;
int sg_n = sg_nents(sgl); int sg_n = sg_nents(sgl);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment