[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1471749195-32125-1-git-send-email-shawn.lin@rock-chips.com>
Date: Sun, 21 Aug 2016 11:13:15 +0800
From: Shawn Lin <shawn.lin@...k-chips.com>
To: Herbert Xu <herbert@...dor.apana.org.au>,
Nicolai Stange <nicstange@...il.com>,
David Howells <dhowells@...hat.com>
Cc: linux-kernel@...r.kernel.org, Shawn Lin <shawn.lin@...k-chips.com>
Subject: [PATCH] lib/digsig: remove redundant clean out1 when verifying RSA
out1 is already set to zero when allocating by kzalloc, so
we could avoid this clean operation again.
Signed-off-by: Shawn Lin <shawn.lin@...k-chips.com>
---
lib/digsig.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/digsig.c b/lib/digsig.c
index 55b8b2f..d6a2aa4 100644
--- a/lib/digsig.c
+++ b/lib/digsig.c
@@ -156,7 +156,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.3.7
Powered by blists - more mailing lists