diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-25 23:19:24 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-12-25 11:02:01 +1100 |
commit | 6f5ff6713b247215f7f3349404842ed206261c79 (patch) | |
tree | 08c86b1087ed57ffc04b6652856ad684382c2780 | |
parent | 95b60fa192e030e4105b383ea55ae3eb67686d67 (diff) | |
download | linux-crypto-6f5ff6713b247215f7f3349404842ed206261c79.tar.gz linux-crypto-6f5ff6713b247215f7f3349404842ed206261c79.zip |
crypto: testmgr - Fix error flow of test_comp
This warning:
crypto/testmgr.c: In function ‘test_comp’:
crypto/testmgr.c:829: warning: ‘ret’ may be used uninitialized in this function
triggers because GCC correctly notices that in the ctcount == 0 &&
dtcount != 0 input condition case this function can return an undefined
value, if the second loop fails.
Remove the shadowed 'ret' variable from the second loop that was probably
unintended.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | crypto/testmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 67dce77d..67ff4aaa 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -853,7 +853,7 @@ static int test_comp(struct crypto_comp *tfm, struct comp_testvec *ctemplate, } for (i = 0; i < dtcount; i++) { - int ilen, ret, dlen = COMP_BUF_SIZE; + int ilen, dlen = COMP_BUF_SIZE; memset(result, 0, sizeof (result)); |