[PATCH 1/1] lib: rsa: superfluous initialization in rsa_verify()

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Aug 20 20:29:47 CEST 2020


Remove initialization of ret with unused value.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 lib/rsa/rsa-verify.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/rsa/rsa-verify.c b/lib/rsa/rsa-verify.c
index 2057f6819d..be55a4376f 100644
--- a/lib/rsa/rsa-verify.c
+++ b/lib/rsa/rsa-verify.c
@@ -540,7 +540,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
--
2.28.0



More information about the U-Boot mailing list