From b73f28d2f847c24ca5d858a79fd37055036b0a67 Mon Sep 17 00:00:00 2001 From: Thorsten Blum Date: Sun, 14 Sep 2025 16:25:55 +0200 Subject: [PATCH] crypto: anubis - simplify return statement in anubis_mod_init Return the result of calling crypto_register_alg() directly and remove the local return variable. Signed-off-by: Thorsten Blum Signed-off-by: Herbert Xu --- crypto/anubis.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crypto/anubis.c b/crypto/anubis.c index 4268c3833baa..4b01b6ec961a 100644 --- a/crypto/anubis.c +++ b/crypto/anubis.c @@ -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) -- 2.47.3