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

Configure Feed

Select the types of activity you want to include in your feed.

crypto: x86/des3 - remove redundant assignment of variable nbytes

The variable nbytes is being assigned a value that is never read, it is
being re-assigned in the following statement. The assignment is redundant
and can be removed.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Colin Ian King and committed by
Herbert Xu
015e42c8 3f9dd4c8

+2 -2
+2 -2
arch/x86/crypto/des3_ede_glue.c
··· 164 164 165 165 err = skcipher_walk_virt(&walk, req, false); 166 166 167 - while ((nbytes = walk.nbytes)) { 167 + while (walk.nbytes) { 168 168 nbytes = __cbc_encrypt(ctx, &walk); 169 169 err = skcipher_walk_done(&walk, nbytes); 170 170 } ··· 243 243 244 244 err = skcipher_walk_virt(&walk, req, false); 245 245 246 - while ((nbytes = walk.nbytes)) { 246 + while (walk.nbytes) { 247 247 nbytes = __cbc_decrypt(ctx, &walk); 248 248 err = skcipher_walk_done(&walk, nbytes); 249 249 }