Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

lib/digsig: remove unnecessary memset

kzalloc() has already been initialized to full 0 space, there is no need
to use memset() to initialize again.

Link: https://lkml.kernel.org/r/20250811082739.378284-1-liaoyuanhong@vivo.com
Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Liao Yuanhong and committed by
Andrew Morton
ca78a04c baa96bcb

-1
-1
lib/digsig.c
··· 159 159 160 160 len = mlen; 161 161 head = len - l; 162 - memset(out1, 0, head); 163 162 memcpy(out1 + head, p, l); 164 163 165 164 kfree(p);