]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: scompress - Use crypto_unregister_scomps in crypto_register_scomps
authorThorsten Blum <thorsten.blum@linux.dev>
Thu, 11 Dec 2025 08:52:51 +0000 (09:52 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Dec 2025 06:47:47 +0000 (14:47 +0800)
commit0e602c5f04943a0a123aef69076ef9305c484c53
tree6d9443249e02357e8a1bf5f626257edfed008223
parentbb571875f77f2af259b6e2cca91b10964bcd0d79
crypto: scompress - Use crypto_unregister_scomps in crypto_register_scomps

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@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/scompress.c