]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: starfive - use list_first_entry_or_null to simplify cryp_find_dev
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 27 Apr 2026 21:35:06 +0000 (23:35 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 7 May 2026 08:10:02 +0000 (16:10 +0800)
commitbee54677bc516e28ced4276792958f0f1a264871
tree2b3d5beb9859913e6a0e4d92bf5324fe6b842856
parentc3494e6fbb35579a131de11369b658a59b1323e5
crypto: starfive - use list_first_entry_or_null to simplify cryp_find_dev

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