[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250811082739.378284-1-liaoyuanhong@vivo.com>
Date: Mon, 11 Aug 2025 16:27:38 +0800
From: Liao Yuanhong <liaoyuanhong@...o.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org (open list:LIBRARY CODE)
Cc: Liao Yuanhong <liaoyuanhong@...o.com>
Subject: [PATCH] lib/digsig: Remove unnecessary memset
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@...o.com>
---
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
Powered by blists - more mailing lists