mirror of https://github.com/acidanthera/audk.git
Don't initialize local variables in its declaration.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15972 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
97fa0ee9b1
commit
4c103c557a
|
@ -210,8 +210,8 @@ InternalAllocateAlignedPages (
|
||||||
EFI_PHYSICAL_ADDRESS Memory;
|
EFI_PHYSICAL_ADDRESS Memory;
|
||||||
EFI_PHYSICAL_ADDRESS AlignedMemory;
|
EFI_PHYSICAL_ADDRESS AlignedMemory;
|
||||||
EFI_PEI_HOB_POINTERS Hob;
|
EFI_PEI_HOB_POINTERS Hob;
|
||||||
BOOLEAN SkipBeforeMemHob = FALSE;
|
BOOLEAN SkipBeforeMemHob;
|
||||||
BOOLEAN SkipAfterMemHob = FALSE;
|
BOOLEAN SkipAfterMemHob;
|
||||||
EFI_PHYSICAL_ADDRESS HobBaseAddress;
|
EFI_PHYSICAL_ADDRESS HobBaseAddress;
|
||||||
UINT64 HobLength;
|
UINT64 HobLength;
|
||||||
EFI_MEMORY_TYPE HobMemoryType;
|
EFI_MEMORY_TYPE HobMemoryType;
|
||||||
|
@ -267,6 +267,8 @@ InternalAllocateAlignedPages (
|
||||||
// The before or after mem HOBs need to be skipped under special cases where the aligned portion
|
// The before or after mem HOBs need to be skipped under special cases where the aligned portion
|
||||||
// touches either the top or bottom of the original allocated space.
|
// touches either the top or bottom of the original allocated space.
|
||||||
//
|
//
|
||||||
|
SkipBeforeMemHob = FALSE;
|
||||||
|
SkipAfterMemHob = FALSE;
|
||||||
if (Memory == AlignedMemory) {
|
if (Memory == AlignedMemory) {
|
||||||
SkipBeforeMemHob = TRUE;
|
SkipBeforeMemHob = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue