Re: [PATCH 2/2] crypto: stm32 - use list_first_entry_or_null to simplify cryp_find_dev
From: Kees Cook <kees@kernel.org>
Date: 2026-03-20 18:26:00
Also in:
linux-crypto, lkml
From: Kees Cook <kees@kernel.org>
Date: 2026-03-20 18:26:00
Also in:
linux-crypto, lkml
On Fri, Mar 20, 2026 at 09:49:14AM +0100, Thorsten Blum wrote:
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> -- Kees Cook