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>
This commit is contained in:
parent
f0cafb02de
commit
b73f28d2f8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue