]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: s5p-sss - use unregister_{ahashes,skciphers} in probe/remove
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 17 Mar 2026 08:04:52 +0000 (09:04 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Mar 2026 09:52:25 +0000 (18:52 +0900)
commitf30579bbae86c860a642621322d90d3d4c60c9b5
tree5f45daaa976dd315d8f0e5f10da80e568dce2461
parentf9bbd547cfb98b1c5e535aab9b0671a2ff22453a
crypto: s5p-sss - use unregister_{ahashes,skciphers} in probe/remove

Replace multiple for loops with calls to crypto_unregister_ahashes() and
crypto_unregister_skciphers().

If crypto_register_skcipher() fails in s5p_aes_probe(), log the error
directly instead of checking 'i < ARRAY_SIZE(algs)' later.  Also drop
now-unused local index variables.  No functional changes.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/s5p-sss.c