mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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:
parent
51b58f4cd9
commit
c75a8d0aad
1 changed files with 1 additions and 2 deletions
|
|
@ -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.
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue