Skip to content

Commit 5af9ad5

Browse files
committed
[crypto] Fix unused-but-set variable warning
Reported-by: Brandon Penglase <bpenglase-ipxe@spaceservices.net> Signed-off-by: Michael Brown <mcb30@ipxe.org>
1 parent 658c25a commit 5af9ad5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/net/validator.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,6 @@ static struct interface_descriptor validator_xfer_desc =
455455
*/
456456
static void validator_step ( struct validator *validator ) {
457457
struct x509_link *link;
458-
struct x509_link *previous;
459458
struct x509_certificate *cert;
460459
struct x509_certificate *issuer = NULL;
461460
struct x509_certificate *last;
@@ -479,7 +478,6 @@ static void validator_step ( struct validator *validator ) {
479478
list_for_each_entry ( link, &validator->chain->links, list ) {
480479
cert = issuer;
481480
issuer = link->cert;
482-
previous = link;
483481
if ( ! cert )
484482
continue;
485483
if ( ! issuer->valid )

0 commit comments

Comments
 (0)