diff options
author | Gary Lin <glin@suse.com> | 2016-07-29 11:25:23 +0800 |
---|---|---|
committer | david wei <david.wei@intel.com> | 2016-08-03 11:02:13 +0800 |
commit | 824dfb5f8b1d7322e9163134c68bbc51ee2c04c0 (patch) | |
tree | d7e0bb84ec9809bf34ba7918a53e05723aa131c1 /Vlv2TbltDevicePkg | |
parent | b3a4a852edc1ff131b219047b5342b899f695e08 (diff) | |
download | edk2-platforms-824dfb5f8b1d7322e9163134c68bbc51ee2c04c0.tar.xz |
Vlv2TbltDevicePkg/PlatformPei: Remove the unused variable
Fix the following error from gcc:
Vlv2TbltDevicePkg/PlatformPei/MemoryCallback.c: In function ?MemoryDiscoveredPpiNotifyCallback?:
Vlv2TbltDevicePkg/PlatformPei/MemoryCallback.c:115:20: error: variable ?Status? set but not used [-Werror=unused-but-set-variable]
Cc: David Wei <david.wei@intel.com>
Cc: "Wu, Hao A" <hao.a.wu@intel.com>
Cc: "Lu, ShifeiX A" <shifeix.a.lu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: David Wei <david.wei@intel.com>
Diffstat (limited to 'Vlv2TbltDevicePkg')
-rw-r--r-- | Vlv2TbltDevicePkg/PlatformPei/MemoryCallback.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Vlv2TbltDevicePkg/PlatformPei/MemoryCallback.c b/Vlv2TbltDevicePkg/PlatformPei/MemoryCallback.c index 82954d3a50..9c769bf42c 100644 --- a/Vlv2TbltDevicePkg/PlatformPei/MemoryCallback.c +++ b/Vlv2TbltDevicePkg/PlatformPei/MemoryCallback.c @@ -103,7 +103,6 @@ MemoryDiscoveredPpiNotifyCallback ( )
{
- EFI_STATUS Status;
EFI_BOOT_MODE BootMode;
UINT32 Pages;
VOID* Memory;
@@ -113,10 +112,10 @@ MemoryDiscoveredPpiNotifyCallback ( // Allocate LM memory and configure PDM if enabled by user.
// ConfigureLM(PeiServices);
//
- Status = (*PeiServices)->GetBootMode (
- (const EFI_PEI_SERVICES **)PeiServices,
- &BootMode
- );
+ (*PeiServices)->GetBootMode (
+ (const EFI_PEI_SERVICES **)PeiServices,
+ &BootMode
+ );
if (BootMode != BOOT_ON_S3_RESUME) {
Size = (PcdGet32 (PcdFlashFvRecovery2Base) - PcdGet32 (PcdFlashFvMainBase)) + FixedPcdGet32(PcdFlashFvRecovery2Size);
|