[PATCH] lib/digsig: Remove unnecessary memset
From: Liao Yuanhong
Date: Mon Aug 11 2025 - 04:28:02 EST
kzalloc() has already been initialized to full 0 space, there is no need to
use memset() to initialize again.
Signed-off-by: Liao Yuanhong <liaoyuanhong@xxxxxxxx>
---
lib/digsig.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/digsig.c b/lib/digsig.c
index 04b5e55ed95f..2b36f9cc91e9 100644
--- a/lib/digsig.c
+++ b/lib/digsig.c
@@ -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);
--
2.34.1