]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: img-hash - Use unregister_ahashes in img_{un}register_algs
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 1 Feb 2026 17:56:33 +0000 (18:56 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 7 Feb 2026 01:32:10 +0000 (09:32 +0800)
commit0ce90934c0a6baac053029ad28566536ae50d604
treeb627869dc16c80c6b49c9684dbd5f3948f41136c
parentdc8f3d9ae804e8bb47dd49b051fe8b303db3b95c
crypto: img-hash - Use unregister_ahashes in img_{un}register_algs

Replace the for loops with calls to crypto_unregister_ahashes(). In
img_register_algs(), return 'err' immediately and remove the goto
statement to simplify the error handling code.

Convert img_unregister_algs() to a void function since its return value
is never used.

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