From 4143989061bf74e7b97bdb43ffaedc9e4447a76a Mon Sep 17 00:00:00 2001 From: Savva Mitrofanov Date: Mon, 26 Dec 2022 17:42:52 +0600 Subject: [PATCH] CryptoPkg/BaseCryptLib: Removes unused variable in CryptX509 Removes unused local variable in X509ConstructCertificateStackV Signed-off-by: Savva Mitrofanov --- CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c index 1182323b63..a564fb7d18 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c +++ b/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c @@ -102,7 +102,6 @@ X509ConstructCertificateStackV ( STACK_OF (X509) *CertStack; BOOLEAN Status; - UINTN Index; // // Check input parameters. @@ -124,7 +123,7 @@ X509ConstructCertificateStackV ( } } - for (Index = 0; ; Index++) { + while (TRUE) { // // If Cert is NULL, then it is the end of the list. //