Re: [PATCH 1/2] hwrng: virtio - simplify probe_common()

From: Herbert Xu

Date: Fri Nov 13 2026 - 10:10:36 EST


On Tue, Nov 03, 2026 at 05:50:27PM +0100, Thorsten Blum wrote:
> Drop the redundant NULL initialization since vi is immediately
> reassigned. Drop the redundant index variable and use vi->index
> directly. Also call ida_free() directly and consolidate the error
> cleanup paths.
>
> Signed-off-by: Thorsten Blum <blum@xxxxxxxxxx>
> ---
> drivers/char/hw_random/virtio-rng.c | 19 +++++++++----------
> 1 file changed, 9 insertions(+), 10 deletions(-)

All 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