mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
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>
This commit is contained in:
parent
baa96bcb18
commit
ca78a04ce5
1 changed files with 0 additions and 1 deletions
|
|
@ -159,7 +159,6 @@ static int digsig_verify_rsa(struct key *key,
|
|||
|
||||
len = mlen;
|
||||
head = len - l;
|
||||
memset(out1, 0, head);
|
||||
memcpy(out1 + head, p, l);
|
||||
|
||||
kfree(p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue