[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210514113604.ovkdwijzqmm4el3h@gondor.apana.org.au>
Date: Fri, 14 May 2021 19:36:04 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Yang Li <yang.lee@...ux.alibaba.com>
Cc: davem@...emloft.net, nathan@...nel.org, ndesaulniers@...gle.com,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
clang-built-linux@...glegroups.com
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@...ux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@...ux.alibaba.com>
> ---
> drivers/crypto/cavium/nitrox/nitrox_reqmgr.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists