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

Loading…
Cancel
Save