Re: [PATCH v2] crypto: scompress - Use crypto_unregister_scomps in crypto_register_scomps

From: Herbert Xu

Date: Fri Dec 19 2025 - 02:10:08 EST


On Thu, Dec 11, 2025 at 09:52:51AM +0100, Thorsten Blum wrote:
> Replace the for loop with a call to crypto_unregister_scomps(). Return
> 'ret' immediately and remove the goto statement to simplify the error
> handling code. No functional changes.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> Changes in v2:
> - Leave crypto_unregister_scomps() as is (Herbert)
> - Link to v1: https://lore.kernel.org/lkml/20251210132548.569689-2-thorsten.blum@xxxxxxxxx/
> ---
> crypto/scompress.c | 12 ++++--------
> 1 file changed, 4 insertions(+), 8 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