提交 1353e576 编写于 作者: C Colin Ian King 提交者: Herbert Xu

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'
Signed-off-by: NColin Ian King <colin.i.king@gmail.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 b77e34f5
...@@ -144,7 +144,7 @@ static int cbc_encrypt(struct skcipher_request *req) ...@@ -144,7 +144,7 @@ static int cbc_encrypt(struct skcipher_request *req)
err = skcipher_walk_virt(&walk, req, false); err = skcipher_walk_virt(&walk, req, false);
while ((nbytes = walk.nbytes)) { while (walk.nbytes) {
nbytes = __cbc_encrypt(ctx, &walk); nbytes = __cbc_encrypt(ctx, &walk);
err = skcipher_walk_done(&walk, nbytes); err = skcipher_walk_done(&walk, nbytes);
} }
...@@ -225,7 +225,7 @@ static int cbc_decrypt(struct skcipher_request *req) ...@@ -225,7 +225,7 @@ static int cbc_decrypt(struct skcipher_request *req)
err = skcipher_walk_virt(&walk, req, false); err = skcipher_walk_virt(&walk, req, false);
while ((nbytes = walk.nbytes)) { while (walk.nbytes) {
nbytes = __cbc_decrypt(ctx, &walk); nbytes = __cbc_decrypt(ctx, &walk);
err = skcipher_walk_done(&walk, nbytes); err = skcipher_walk_done(&walk, nbytes);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册