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

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

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/stm32/stm32-hash.c