diff options
author | Gao, Liming <liming.gao@intel.com> | 2014-08-28 14:49:14 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-28 14:49:14 +0000 |
commit | 4c103c557a58a89138baa0f69e0698ce41337232 (patch) | |
tree | 4b8b65231a237b64dce18eb078b0d2939f63a780 /MdePkg | |
parent | 97fa0ee9b1cffbb4b97ee35365afa7afcf50e174 (diff) | |
download | edk2-platforms-4c103c557a58a89138baa0f69e0698ce41337232.tar.xz |
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
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c | 6 |
1 files changed, 4 insertions, 2 deletions
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;
}
|