]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: rng - Use unregister_rngs in register_rngs
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 26 Jan 2026 17:50:18 +0000 (18:50 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Feb 2026 10:52:22 +0000 (18:52 +0800)
commit8b3ad41479b07d2b677f14a91358aaf804f740c3
treef45719e7e84712fb34321c8d1ef332a2bab121e0
parent2ffc1ef4e826f0c3274f9ff5eb42bc70a5571afd
crypto: rng - Use unregister_rngs in register_rngs

Replace the for loop with a call to crypto_unregister_rngs(). 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/rng.c