]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: skcipher - Use unregister_skciphers in register_skciphers
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 19 Dec 2025 14:51:20 +0000 (15:51 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 23 Jan 2026 05:48:42 +0000 (13:48 +0800)
commit5a22716ebed071f81413ae3bbbfaf8cd16b992f1
tree4d5bfa2e08966bbfcd0a053338e8662abb53091c
parentc29fcecaf8a9e92adb41d3e2b9d6af9b2e04a385
crypto: skcipher - Use unregister_skciphers in register_skciphers

Replace the for loop with a call to crypto_unregister_skciphers().
Return 'ret' immediately and remove the goto statement to simplify the
error handling code.  No functional changes.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/skcipher.c