From: Thorsten Blum Date: Sun, 14 Sep 2025 14:25:55 +0000 (+0200) Subject: crypto: anubis - simplify return statement in anubis_mod_init X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b73f28d2f847c24ca5d858a79fd37055036b0a67;p=users%2Fhch%2Fmisc.git 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 --- 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)