diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2009-08-29 09:36:25 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-08-29 09:36:25 +0200 |
commit | a367b17f34e1280270a6b577c11d5ecff093f9ae (patch) | |
tree | 62b8906852cf2fd85821d9b90ce025240a7b9e9f /crypto | |
parent | crypto: xcbc - Fix alignment calculation of xcbc_tfm_ctx (diff) | |
download | linux-a367b17f34e1280270a6b577c11d5ecff093f9ae.tar.xz linux-a367b17f34e1280270a6b577c11d5ecff093f9ae.zip |
crypto: ansi_cprng - Fix module initialization
Return the value we got from crypto_register_alg() instead of
returning 0 in any case.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/ansi_cprng.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/crypto/ansi_cprng.c b/crypto/ansi_cprng.c index 5357ba7d821a..3aa6e3834bfe 100644 --- a/crypto/ansi_cprng.c +++ b/crypto/ansi_cprng.c @@ -408,17 +408,10 @@ static struct crypto_alg rng_alg = { /* Module initalization */ static int __init prng_mod_init(void) { - int ret = 0; - if (fips_enabled) rng_alg.cra_priority += 200; - ret = crypto_register_alg(&rng_alg); - - if (ret) - goto out; -out: - return 0; + return crypto_register_alg(&rng_alg); } static void __exit prng_mod_fini(void) |