Commit 11f2f6b3 authored by James Morris's avatar James Morris

[CRYPTO] remove superfluous goto from des module init exception path

parent fb90004b
...@@ -1279,10 +1279,8 @@ static int __init init(void) ...@@ -1279,10 +1279,8 @@ static int __init init(void)
goto out; goto out;
ret = crypto_register_alg(&des3_ede_alg); ret = crypto_register_alg(&des3_ede_alg);
if (ret < 0) { if (ret < 0)
crypto_unregister_alg(&des_alg); crypto_unregister_alg(&des_alg);
goto out;
}
out: out:
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment