]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: lskcipher - Use unregister_lskciphers in register_lskciphers
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 19 Dec 2025 14:51:21 +0000 (15:51 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 23 Jan 2026 05:48:42 +0000 (13:48 +0800)
commit32adff68c7d3b57b409cee88aa4d603579cf12b4
treea0d156dc9a567b210876e19e905919b8cfcdfe2a
parent5a22716ebed071f81413ae3bbbfaf8cd16b992f1
crypto: lskcipher - Use unregister_lskciphers in register_lskciphers

Replace the for loop with a call to crypto_unregister_lskciphers().
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/lskcipher.c