aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-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 5357ba7d821a..3aa6e3834bfe 100644
--- a/crypto/ansi_cprng.c
+++ b/crypto/ansi_cprng.c
@@ -408,17 +408,10 @@ static struct crypto_alg rng_alg = {
408/* Module initalization */ 408/* Module initalization */
409static int __init prng_mod_init(void) 409static int __init prng_mod_init(void)
410{ 410{
411 int ret = 0;
412
413 if (fips_enabled) 411 if (fips_enabled)
414 rng_alg.cra_priority += 200; 412 rng_alg.cra_priority += 200;
415 413
416 ret = crypto_register_alg(&rng_alg); 414 return crypto_register_alg(&rng_alg);
417
418 if (ret)
419 goto out;
420out:
421 return 0;
422} 415}
423 416
424static void __exit prng_mod_fini(void) 417static void __exit prng_mod_fini(void)