CryptoPkg: Fix non-idiomatic endless loop

This was found building ArmVirtQemu using CLANGDWARF with
unused-but-set-variable warning enabled.

Fixes: 40fa5cf299

Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
This commit is contained in:
Mike Beaton 2025-11-09 18:34:14 +00:00 committed by mergify[bot]
parent 51b58f4cd9
commit c75a8d0aad

View file

@ -128,7 +128,6 @@ X509ConstructCertificateStackV (
{
UINT8 *Cert;
UINTN CertSize;
INT32 Index;
INT32 Ret;
mbedtls_x509_crt *Crt;
@ -148,7 +147,7 @@ X509ConstructCertificateStackV (
*X509Stack = (UINT8 *)Crt;
}
for (Index = 0; ; Index++) {
while (TRUE) {
//
// If Cert is NULL, then it is the end of the list.
//