diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-09-14 16:25:55 +0200 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-09-20 20:21:04 +0800 |
| commit | b73f28d2f847c24ca5d858a79fd37055036b0a67 (patch) | |
| tree | 70df26b551cd728ca9fc7acd4f692377aa487cb0 /crypto/anubis.c | |
| parent | f0cafb02de883b3b413d34eb079c9680782a9cc1 (diff) | |
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 <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/anubis.c')
| -rw-r--r-- | crypto/anubis.c | 5 |
1 files changed, 1 insertions, 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) |