Re: [PATCH] hwrng: amd - simplify control flow in amd_rng_mod_init()

From: Herbert Xu

Date: Thu Oct 08 2026 - 04:36:39 EST


On Fri, Oct 02, 2026 at 04:19:51PM +0200, Thorsten Blum wrote:
> Replace the goto found statement with a break and check pdev after the
> loop. Also consolidate the cleanup paths.
>
> Signed-off-by: Thorsten Blum <blum@xxxxxxxxxx>
> ---
> drivers/char/hw_random/amd-rng.c | 23 +++++++++--------------
> 1 file changed, 9 insertions(+), 14 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