From: Gary Lin Date: Fri, 29 Jul 2016 03:25:23 +0000 (+0800) Subject: Vlv2TbltDevicePkg/PlatformPei: Remove the unused variable X-Git-Tag: edk2-stable201903~6149 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=824dfb5f8b1d7322e9163134c68bbc51ee2c04c0 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 Cc: "Wu, Hao A" Cc: "Lu, ShifeiX A" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gary Lin Reviewed-by: David Wei --- 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);