From 4c103c557a58a89138baa0f69e0698ce41337232 Mon Sep 17 00:00:00 2001 From: "Gao, Liming" Date: Thu, 28 Aug 2014 14:49:14 +0000 Subject: Don't initialize local variables in its declaration. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15972 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'MdePkg') diff --git a/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c b/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c index 443c3c6b12..afc3909612 100644 --- a/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c +++ b/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c @@ -210,8 +210,8 @@ InternalAllocateAlignedPages ( EFI_PHYSICAL_ADDRESS Memory; EFI_PHYSICAL_ADDRESS AlignedMemory; EFI_PEI_HOB_POINTERS Hob; - BOOLEAN SkipBeforeMemHob = FALSE; - BOOLEAN SkipAfterMemHob = FALSE; + BOOLEAN SkipBeforeMemHob; + BOOLEAN SkipAfterMemHob; EFI_PHYSICAL_ADDRESS HobBaseAddress; UINT64 HobLength; 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 // touches either the top or bottom of the original allocated space. // + SkipBeforeMemHob = FALSE; + SkipAfterMemHob = FALSE; if (Memory == AlignedMemory) { SkipBeforeMemHob = TRUE; } -- cgit v1.2.3