mirror of https://github.com/acidanthera/audk.git
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:
parent
8591f002ce
commit
a3fbdbd7b4
|
@ -173,7 +173,6 @@ RetrieveRelocatedCapsule (
|
||||||
IN UINTN RelocCapsuleTotalSize
|
IN UINTN RelocCapsuleTotalSize
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINTN Index;
|
|
||||||
UINT8 *CapsuleDataBufEnd;
|
UINT8 *CapsuleDataBufEnd;
|
||||||
UINT8 *CapsulePtr;
|
UINT8 *CapsulePtr;
|
||||||
UINT32 CapsuleSize;
|
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
|
// Re-iterate the capsule buffer to create Capsule hob & Capsule Name Str Hob for each Capsule saved in relocated capsule file
|
||||||
//
|
//
|
||||||
CapsulePtr = RelocCapsuleBuf;
|
CapsulePtr = RelocCapsuleBuf;
|
||||||
Index = 0;
|
|
||||||
while (CapsulePtr < CapsuleDataBufEnd) {
|
while (CapsulePtr < CapsuleDataBufEnd) {
|
||||||
CapsuleSize = ((EFI_CAPSULE_HEADER *)CapsulePtr)->CapsuleImageSize;
|
CapsuleSize = ((EFI_CAPSULE_HEADER *)CapsulePtr)->CapsuleImageSize;
|
||||||
BuildCvHob ((EFI_PHYSICAL_ADDRESS)(UINTN)CapsulePtr, CapsuleSize);
|
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));
|
DEBUG ((DEBUG_INFO, "Capsule saved in address %x size %x\n", CapsulePtr, CapsuleSize));
|
||||||
|
|
||||||
CapsulePtr += CapsuleSize;
|
CapsulePtr += CapsuleSize;
|
||||||
Index++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue