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>
This commit is contained in:
Gary Lin 2016-07-29 11:25:23 +08:00 committed by david wei
parent b3a4a852ed
commit 824dfb5f8b
1 changed files with 4 additions and 5 deletions

View File

@ -103,7 +103,6 @@ MemoryDiscoveredPpiNotifyCallback (
) )
{ {
EFI_STATUS Status;
EFI_BOOT_MODE BootMode; EFI_BOOT_MODE BootMode;
UINT32 Pages; UINT32 Pages;
VOID* Memory; VOID* Memory;
@ -113,7 +112,7 @@ MemoryDiscoveredPpiNotifyCallback (
// Allocate LM memory and configure PDM if enabled by user. // Allocate LM memory and configure PDM if enabled by user.
// ConfigureLM(PeiServices); // ConfigureLM(PeiServices);
// //
Status = (*PeiServices)->GetBootMode ( (*PeiServices)->GetBootMode (
(const EFI_PEI_SERVICES **)PeiServices, (const EFI_PEI_SERVICES **)PeiServices,
&BootMode &BootMode
); );