Skip to content

Commit b73f28d

Browse files
tobluxherbertx
authored andcommitted
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>
1 parent f0cafb0 commit b73f28d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

crypto/anubis.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -683,10 +683,7 @@ static struct crypto_alg anubis_alg = {
683683

684684
static int __init anubis_mod_init(void)
685685
{
686-
int ret = 0;
687-
688-
ret = crypto_register_alg(&anubis_alg);
689-
return ret;
686+
return crypto_register_alg(&anubis_alg);
690687
}
691688

692689
static void __exit anubis_mod_fini(void)

0 commit comments

Comments
 (0)