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>
)\r
{\r
\r
- EFI_STATUS Status;\r
EFI_BOOT_MODE BootMode;\r
UINT32 Pages;\r
VOID* Memory;\r
// Allocate LM memory and configure PDM if enabled by user.\r
// ConfigureLM(PeiServices);\r
//\r
- Status = (*PeiServices)->GetBootMode (\r
- (const EFI_PEI_SERVICES **)PeiServices,\r
- &BootMode\r
- );\r
+ (*PeiServices)->GetBootMode (\r
+ (const EFI_PEI_SERVICES **)PeiServices,\r
+ &BootMode\r
+ );\r
\r
if (BootMode != BOOT_ON_S3_RESUME) {\r
Size = (PcdGet32 (PcdFlashFvRecovery2Base) - PcdGet32 (PcdFlashFvMainBase)) + FixedPcdGet32(PcdFlashFvRecovery2Size);\r