]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: ahash - Use unregister_ahashes in register_ahashes
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 19 Dec 2025 14:51:18 +0000 (15:51 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 23 Jan 2026 05:48:42 +0000 (13:48 +0800)
commitbcc3b3c8ae49d00c8e6a4a7616ef74ef0b176daf
tree64e5d1ecbeb5185a204101fd7002081cdf320a0f
parentfbbc944b5945bfd2715a3d762784c318a040f36a
crypto: ahash - Use unregister_ahashes in register_ahashes

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