]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: shash - Use unregister_shashes in register_shashes
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 19 Dec 2025 14:51:19 +0000 (15:51 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 23 Jan 2026 05:48:42 +0000 (13:48 +0800)
commitc29fcecaf8a9e92adb41d3e2b9d6af9b2e04a385
tree2d56ab606cb3e25effda490b5c9a0845b11a0ac4
parentbcc3b3c8ae49d00c8e6a4a7616ef74ef0b176daf
crypto: shash - Use unregister_shashes in register_shashes

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