]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: stm32 - use list_first_entry_or_null to simplify cryp_find_dev
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 20 Mar 2026 08:49:14 +0000 (09:49 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Mar 2026 09:52:43 +0000 (18:52 +0900)
commit92c0a9bbcde6a748a40182fe32e3a1b2f9f1a23d
treeda43ae827a30c6d299a6ab9db885f30e4ea9f8b1
parent1a9670df56eac0a374cc2a5e9a63775de4c61837
crypto: stm32 - use list_first_entry_or_null to simplify cryp_find_dev

Use list_first_entry_or_null() to simplify stm32_cryp_find_dev() and
remove the now-unused local variable 'struct stm32_cryp *tmp'.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/stm32/stm32-cryp.c