]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Don't initialize local variables in its declaration.
authorGao, Liming <liming.gao@intel.com>
Thu, 28 Aug 2014 14:49:14 +0000 (14:49 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 28 Aug 2014 14:49:14 +0000 (14:49 +0000)
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

MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c

index 443c3c6b1231d9e4e4bdbc063ec6bdd03686644f..afc3909612aa9c687ca7a4d6aa2f4f53f9068200 100644 (file)
@@ -210,8 +210,8 @@ InternalAllocateAlignedPages (
   EFI_PHYSICAL_ADDRESS   Memory;\r
   EFI_PHYSICAL_ADDRESS   AlignedMemory;\r
   EFI_PEI_HOB_POINTERS   Hob;\r
-  BOOLEAN                SkipBeforeMemHob = FALSE;\r
-  BOOLEAN                SkipAfterMemHob = FALSE;\r
+  BOOLEAN                SkipBeforeMemHob;\r
+  BOOLEAN                SkipAfterMemHob;\r
   EFI_PHYSICAL_ADDRESS   HobBaseAddress;\r
   UINT64                 HobLength;\r
   EFI_MEMORY_TYPE        HobMemoryType;\r
@@ -267,6 +267,8 @@ InternalAllocateAlignedPages (
   // The before or after mem HOBs need to be skipped under special cases where the aligned portion\r
   // touches either the top or bottom of the original allocated space.\r
   //\r
+  SkipBeforeMemHob = FALSE;\r
+  SkipAfterMemHob  = FALSE;\r
   if (Memory == AlignedMemory) {\r
     SkipBeforeMemHob = TRUE;\r
   }\r