crypto: x86/blowfish: remove redundant assignment to variable nytes
Subsystems (3)
PATCH 1/1 crypto: x86/blowfish: remove redundant assignment to variable nytes
Variable nbytes is being assigned a value that is never read, it is being re-assigned in the next statement in the while-loop. The assignment is redundant and can be removed.
Cleans up clang scan-build warnings, e.g.:arch/x86/crypto/blowfish_glue.c:147:10: warning: Although the value stored to 'nbytes' is used in the enclosing expression, the value is never actually read from 'nbytes'
--- arch/x86/crypto/blowfish_glue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/crypto/blowfish_glue.c +2 -2
@@ -144,7 +144,7 @@ static int cbc_encrypt(struct skcipher_request *req) err =skcipher_walk_virt (&walk, req, false); -while ((nbytes = walk.nbytes)) { +while (walk.nbytes) { nbytes =__cbc_encrypt (ctx, &walk); err =skcipher_walk_done (&walk, nbytes); }
@@ -225,7 +225,7 @@ static int cbc_decrypt(struct skcipher_request *req) err =skcipher_walk_virt (&walk, req, false); -while ((nbytes = walk.nbytes)) { +while (walk.nbytes) { nbytes =__cbc_decrypt (ctx, &walk); err =skcipher_walk_done (&walk, nbytes); }
Signature · 1 line
2.35.3
Herbert Xu
maintainerQuoted 9 lines · Colin Ian King
Variable nbytes is being assigned a value that is never read, it is being re-assigned in the next statement in the while-loop. The assignment is redundant and can be removed.
Cleans up clang scan-build warnings, e.g.:
arch/x86/crypto/blowfish_glue.c:147:10: warning: Although the value stored to 'nbytes' is used in the enclosing expression, the value is never actually read from 'nbytes'
Quoted 4 lines
Signed-off-by Colin Ian King <[email protected]>--- arch/x86/crypto/blowfish_glue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt