summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crypto/ansi_cprng.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/crypto/ansi_cprng.c b/crypto/ansi_cprng.c
index 5357ba7d821..3aa6e3834bf 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)