Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: ccp - A value assigned to a variable is never used

Fix the following whitescan warning:

Assigning value "64" to "dst.address" here, but that stored value is
overwritten before it can be used.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Acked-by: John Allen <john.allen@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Jiapeng Chong and committed by
Herbert Xu
a52c7b16 da6503f5

-1
-1
drivers/crypto/ccp/ccp-ops.c
··· 2418 2418 dst.address += CCP_ECC_OUTPUT_SIZE; 2419 2419 ccp_reverse_get_dm_area(&dst, 0, ecc->u.pm.result.y, 0, 2420 2420 CCP_ECC_MODULUS_BYTES); 2421 - dst.address += CCP_ECC_OUTPUT_SIZE; 2422 2421 2423 2422 /* Restore the workarea address */ 2424 2423 dst.address = save;