Re: [PATCH] crypto: starfive - use list_first_entry_or_null to simplify cryp_find_dev
From: Herbert Xu
Date: Tue May 05 2026 - 05:30:28 EST
On Mon, Apr 27, 2026 at 11:35:06PM +0200, Thorsten Blum wrote:
> Use list_first_entry_or_null() to simplify starfive_cryp_find_dev() and
> remove the now-unused local variable 'struct starfive_cryp_dev *tmp'.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> drivers/crypto/starfive/jh7110-cryp.c | 17 ++++++-----------
> 1 file changed, 6 insertions(+), 11 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