Skip to content

Commit

Permalink
crypto: testmgr - Fix warning
Browse files Browse the repository at this point in the history
crypto/testmgr.c: In function ‘test_cprng’:
crypto/testmgr.c:1204: warning: ‘err’ may be used uninitialized in this function

Signed-off-by: Felipe Contreras <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
felipec authored and herbertx committed Oct 27, 2009
1 parent 2024e7d commit fa4ef8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/testmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ static int test_cprng(struct crypto_rng *tfm, struct cprng_testvec *template,
unsigned int tcount)
{
const char *algo = crypto_tfm_alg_driver_name(crypto_rng_tfm(tfm));
int err, i, j, seedsize;
int err = 0, i, j, seedsize;
u8 *seed;
char result[32];

Expand Down

0 comments on commit fa4ef8a

Please sign in to comment.