MdeModulePkg/CapsuleOnDiskLoadPei: Removes unused Index variable

Removes unused Index local variable in RetrieveRelocatedCapsule to
suppress compiler warning in LLVM 15

Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
This commit is contained in:
Savva Mitrofanov 2022-12-27 17:58:15 +06:00 committed by Mikhail Krichanov
parent 92a52393f2
commit 3ff9a7d6e2
1 changed files with 0 additions and 3 deletions

View File

@ -173,7 +173,6 @@ RetrieveRelocatedCapsule (
IN UINTN RelocCapsuleTotalSize
)
{
UINTN Index;
UINT8 *CapsuleDataBufEnd;
UINT8 *CapsulePtr;
UINT32 CapsuleSize;
@ -244,7 +243,6 @@ RetrieveRelocatedCapsule (
// Re-iterate the capsule buffer to create Capsule hob & Capsule Name Str Hob for each Capsule saved in relocated capsule file
//
CapsulePtr = RelocCapsuleBuf;
Index = 0;
while (CapsulePtr < CapsuleDataBufEnd) {
CapsuleSize = ((EFI_CAPSULE_HEADER *)CapsulePtr)->CapsuleImageSize;
BuildCvHob ((EFI_PHYSICAL_ADDRESS)(UINTN)CapsulePtr, CapsuleSize);
@ -252,7 +250,6 @@ RetrieveRelocatedCapsule (
DEBUG ((DEBUG_INFO, "Capsule saved in address %x size %x\n", CapsulePtr, CapsuleSize));
CapsulePtr += CapsuleSize;
Index++;
}
return EFI_SUCCESS;