Skip to contentSkip to conversation

lib: rsa: superfluous initialization in rsa_verify()

PATCH New Heinrich Schuchardt 3 participants 3 messages Oct 8, 2020 – Oct 13, 2020

lore
Share & tools
lore
#0 lore raw

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

Remove initialization of ret with unused value.

---
 lib/rsa/rsa-verify.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/rsa/rsa-verify.c +1 -1
index 2057f6819d..be55a4376f 100644
@@ -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

#2 lore raw

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

In reply to Heinrich Schuchardt
Quoted 4 lines · Heinrich Schuchardt

Remove initialization of ret with unused value.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201013/7baef586/attachment.sig>