Skip to content

Commit ca78a04

Browse files
Liao Yuanhongakpm00
authored andcommitted
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/[email protected] Signed-off-by: Liao Yuanhong <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent baa96bc commit ca78a04

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/digsig.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ static int digsig_verify_rsa(struct key *key,
159159

160160
len = mlen;
161161
head = len - l;
162-
memset(out1, 0, head);
163162
memcpy(out1 + head, p, l);
164163

165164
kfree(p);

0 commit comments

Comments
 (0)