Messages in this thread | | | Date | Fri, 14 May 2021 19:36:04 +0800 | From | Herbert Xu <> | Subject | Re: [PATCH] crypto: cavium/nitrox - Remove redundant initialization of 'sg' |
| |
On Fri, May 07, 2021 at 05:56:57PM +0800, Yang Li wrote: > 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> > --- > drivers/crypto/cavium/nitrox/nitrox_reqmgr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks. -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |