summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLiao Yuanhong <liaoyuanhong@vivo.com>2025-08-11 16:27:38 +0800
committerAndrew Morton <akpm@linux-foundation.org>2025-09-13 17:32:45 -0700
commitca78a04ce5c42b00addc063a7610a5ae12dafc39 (patch)
treef297e00906f539b377f67e940c318a50e2e7ac9b /lib
parentbaa96bcb180e979a821ce3ade87a3d2349b2d640 (diff)
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/digsig.c1
1 files changed, 0 insertions, 1 deletions
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);