diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2010-09-23 03:55:27 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-09-23 03:55:27 -0400 |
commit | 1d11911a8c572041880c8d86229f6ed971f6f7e2 (patch) | |
tree | 807a4c1523a490bbb30a31a62a3774933d69e429 /drivers/crypto | |
parent | 298c926c6d7f50d91d6acb76c33b83bab5b5bd5c (diff) |
crypto: talitos - fix warning: 'alg' may be used uninitialized in this function
drivers/crypto/talitos.c: In function 'talitos_probe':
drivers/crypto/talitos.c:2363: warning: 'alg' may be used uninitialized in this function
drivers/crypto/talitos.c:2363: note: 'alg' was declared here
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/talitos.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index 97f4af1d8a64..bbf39991c0d0 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c | |||
@@ -2389,6 +2389,9 @@ static struct talitos_crypto_alg *talitos_alg_alloc(struct device *dev, | |||
2389 | DESC_HDR_MODE0_MDEU_SHA256; | 2389 | DESC_HDR_MODE0_MDEU_SHA256; |
2390 | } | 2390 | } |
2391 | break; | 2391 | break; |
2392 | default: | ||
2393 | dev_err(dev, "unknown algorithm type %d\n", t_alg->algt.type); | ||
2394 | return ERR_PTR(-EINVAL); | ||
2392 | } | 2395 | } |
2393 | 2396 | ||
2394 | alg->cra_module = THIS_MODULE; | 2397 | alg->cra_module = THIS_MODULE; |