Pārlūkot izejas kodu

[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 gadus atpakaļ
vecāks
revīzija
5af9ad51c8
1 mainītis faili ar 0 papildinājumiem un 2 dzēšanām
  1. 0
    2
      src/net/validator.c

+ 0
- 2
src/net/validator.c Parādīt failu

@@ -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 )

Notiek ielāde…
Atcelt
Saglabāt