Commit 3c995c4c authored by Yang Li's avatar Yang Li Committed by Herbert Xu

crypto: cavium/nitrox - Remove redundant initialization of 'sg'

Pointer 'sg' is being initialized however this value is never
read as 'sg' is assigned a same value in for_each_sg().
Remove the redundant assignment.

Cleans up clang warning:

drivers/crypto/cavium/nitrox/nitrox_reqmgr.c:161:22: warning: Value
stored to 'sg' during its initialization is never read
[clang-analyzer-deadcode.DeadStores]
Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarYang Li <yang.lee@linux.alibaba.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 653fdbbf
...@@ -159,7 +159,7 @@ static int dma_map_inbufs(struct nitrox_softreq *sr, ...@@ -159,7 +159,7 @@ static int dma_map_inbufs(struct nitrox_softreq *sr,
struct se_crypto_request *req) struct se_crypto_request *req)
{ {
struct device *dev = DEV(sr->ndev); struct device *dev = DEV(sr->ndev);
struct scatterlist *sg = req->src; struct scatterlist *sg;
int i, nents, ret = 0; int i, nents, ret = 0;
nents = dma_map_sg(dev, req->src, sg_nents(req->src), nents = dma_map_sg(dev, req->src, sg_nents(req->src),
......
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