]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: stm32 - Remove unnecessary checks before calling memcpy
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 9 Jan 2026 14:20:36 +0000 (15:20 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Jan 2026 08:09:32 +0000 (16:09 +0800)
commitda166801d6f5c24376115e7eb1fd33da2eb834de
treeec1e7b09d76db97742a4aff6ebf3b19a90533a9d
parent279b837c1f752c2f261c46a2ae6f56ce3159ecea
crypto: stm32 - Remove unnecessary checks before calling memcpy

memcpy() can be safely called with size 0, which is a no-op. Remove the
unnecessary checks before calling memcpy().

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