]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
crypto: anubis - simplify return statement in anubis_mod_init
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 14 Sep 2025 14:25:55 +0000 (16:25 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 20 Sep 2025 12:21:04 +0000 (20:21 +0800)
Return the result of calling crypto_register_alg() directly and remove
the local return variable.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/anubis.c

index 4268c3833baa7438b1d9ec5e344959ee06f5933d..4b01b6ec961acf2d0129fb77a9657bcafdf6017d 100644 (file)
@@ -683,10 +683,7 @@ static struct crypto_alg anubis_alg = {
 
 static int __init anubis_mod_init(void)
 {
-       int ret = 0;
-
-       ret = crypto_register_alg(&anubis_alg);
-       return ret;
+       return crypto_register_alg(&anubis_alg);
 }
 
 static void __exit anubis_mod_fini(void)