]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
crypto: testmgr - Fix error flow of test_comp
authorIngo Molnar <mingo@elte.hu>
Tue, 25 Nov 2008 15:19:24 +0000 (23:19 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Dec 2008 00:02:01 +0000 (11:02 +1100)
commit664134d2916109be76648977705a2bea3ff76427
tree4e98a60cfd06c783dc88f1b103db9c0ff1ea1736
parent5f459f0adc7581da01cdd9b7f84db14a4559a390
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>
crypto/testmgr.c