summaryrefslogtreecommitdiff
path: root/lib/rsa
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-10-08 20:53:13 +0200
committerTom Rini <trini@konsulko.com>2020-10-12 21:30:38 -0400
commitec71cc34c1cef173d9f656d5cc9a2e698fae28fb (patch)
treed9b0680c0ca27982bd27f1f8cb733728ed3e7039 /lib/rsa
parent3f8808ebaa901ce18a7dfb3432e68e9c3a79f244 (diff)
lib: rsa: superfluous initialization in rsa_verify()
Remove initialization of ret with unused value. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/rsa')
-rw-r--r--lib/rsa/rsa-verify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rsa/rsa-verify.c b/lib/rsa/rsa-verify.c
index b9c800c7dc..0ab0f629d0 100644
--- a/lib/rsa/rsa-verify.c
+++ b/lib/rsa/rsa-verify.c
@@ -545,7 +545,7 @@ int rsa_verify(struct image_sign_info *info,
{
/* Reserve memory for maximum checksum-length */
uint8_t hash[info->crypto->key_len];
- int ret = -EACCES;
+ int ret;
/*
* Verify that the checksum-length does not exceed the