mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-21 23:16:50 +08:00
crypto: khazad - simplify return statement in khazad_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:
committed by
Herbert Xu
parent
37b03cb378
commit
b6aa86c8a5
@@ -859,10 +859,7 @@ static struct crypto_alg khazad_alg = {
|
||||
|
||||
static int __init khazad_mod_init(void)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
ret = crypto_register_alg(&khazad_alg);
|
||||
return ret;
|
||||
return crypto_register_alg(&khazad_alg);
|
||||
}
|
||||
|
||||
static void __exit khazad_mod_fini(void)
|
||||
|
||||
Reference in New Issue
Block a user