]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
Don't initialize local variables in its declaration.
[mirror_edk2.git] / 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