diff options
author | Harry Liebel <Harry.Liebel@arm.com> | 2014-07-29 14:21:05 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-07-29 14:21:05 +0000 |
commit | f9e420d5d2a41707d495e39ebed23566e2d2e9b6 (patch) | |
tree | 866408eb3ed1d7dc8a8475687cc9c316305997fc /ArmPlatformPkg/ArmVExpressPkg | |
parent | 019680b3dcde5e1c88034e0bf92ffce509f211be (diff) | |
download | edk2-platforms-f9e420d5d2a41707d495e39ebed23566e2d2e9b6.tar.xz |
ArmPlatformPkg/ArmVExpressPkg: Fix armcc warning causing build failure
- Variable may be used before being set
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <Harry.Liebel@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15719 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/ArmVExpressPkg')
-rw-r--r-- | ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSMMem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSMMem.c b/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSMMem.c index 5d1461a3a8..77f1857aa0 100644 --- a/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSMMem.c +++ b/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSMMem.c @@ -78,6 +78,8 @@ ArmPlatformGetVirtualMemoryMap ( SparseMemorySize);
} else {
HasSparseMemory = FALSE;
+ SparseMemoryBase = 0x0;
+ SparseMemorySize = 0x0;
}
VirtualMemoryTable = (ARM_MEMORY_REGION_DESCRIPTOR*)AllocatePages(EFI_SIZE_TO_PAGES (sizeof(ARM_MEMORY_REGION_DESCRIPTOR) * MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS));
|