mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 12:30:20 +03:00
[crypto] Fix unused-but-set variable warning
Reported-by: Brandon Penglase <bpenglase-ipxe@spaceservices.net> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -455,7 +455,6 @@ static struct interface_descriptor validator_xfer_desc =
|
||||
*/
|
||||
static void validator_step ( struct validator *validator ) {
|
||||
struct x509_link *link;
|
||||
struct x509_link *previous;
|
||||
struct x509_certificate *cert;
|
||||
struct x509_certificate *issuer = NULL;
|
||||
struct x509_certificate *last;
|
||||
@@ -479,7 +478,6 @@ static void validator_step ( struct validator *validator ) {
|
||||
list_for_each_entry ( link, &validator->chain->links, list ) {
|
||||
cert = issuer;
|
||||
issuer = link->cert;
|
||||
previous = link;
|
||||
if ( ! cert )
|
||||
continue;
|
||||
if ( ! issuer->valid )
|
||||
|
||||
Reference in New Issue
Block a user