Re: [PATCH] crypto: s5p-sss - use unregister_{ahashes,skciphers} in probe/remove
From: Herbert Xu
Date: Fri Mar 27 2026 - 06:07:42 EST
On Tue, Mar 17, 2026 at 09:04:52AM +0100, Thorsten Blum wrote:
> 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@xxxxxxxxx>
> ---
> drivers/crypto/s5p-sss.c | 27 ++++++++++-----------------
> 1 file changed, 10 insertions(+), 17 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt