]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
crypto: cavium/nitrox - Remove redundant initialization of 'sg'
authorYang Li <yang.lee@linux.alibaba.com>
Fri, 7 May 2021 09:56:57 +0000 (17:56 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 14 May 2021 11:07:58 +0000 (19:07 +0800)
commit3c995c4c7575b7b248d16e765fe05c01795fcd14
treec01ce6e35cec7f70c7e7c7d8274009d34607aea8
parent653fdbbf2d2006322b73dfa50add020625947a60
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: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/cavium/nitrox/nitrox_reqmgr.c