From 7d034a0e0e454a908b164734e8bc4dfcdf3c8c63 Mon Sep 17 00:00:00 2001 From: Mike Beaton Date: Tue, 31 Oct 2023 13:03:51 +0000 Subject: [PATCH] CryptoPkg: Fix assigned by unused var --- 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 2333157e0d..d131263b4b 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. //