Browse Source

[crypto] Fix unused-but-set variable warning

Reported-by: Brandon Penglase <bpenglase-ipxe@spaceservices.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
5af9ad51c8
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      src/net/validator.c

+ 0
- 2
src/net/validator.c View File

@@ -455,7 +455,6 @@ static struct interface_descriptor validator_xfer_desc =
455 455
  */
456 456
 static void validator_step ( struct validator *validator ) {
457 457
 	struct x509_link *link;
458
-	struct x509_link *previous;
459 458
 	struct x509_certificate *cert;
460 459
 	struct x509_certificate *issuer = NULL;
461 460
 	struct x509_certificate *last;
@@ -479,7 +478,6 @@ static void validator_step ( struct validator *validator ) {
479 478
 	list_for_each_entry ( link, &validator->chain->links, list ) {
480 479
 		cert = issuer;
481 480
 		issuer = link->cert;
482
-		previous = link;
483 481
 		if ( ! cert )
484 482
 			continue;
485 483
 		if ( ! issuer->valid )

Loading…
Cancel
Save