From: Ingo Molnar Date: Tue, 25 Nov 2008 15:19:24 +0000 (+0800) Subject: crypto: testmgr - Fix error flow of test_comp X-Git-Tag: v2.6.29-rc1~589^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=664134d2916109be76648977705a2bea3ff76427;p=pandora-kernel.git 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 Signed-off-by: Herbert Xu --- Reading git-diff-tree failed