Vlv2TbltDevicePkg/PlatformInitPei: Remove the unused variables
Fix the following errors from gcc: Vlv2TbltDevicePkg/PlatformInitPei/PchInitPeim.c: In function 'IchRcrbInit': Vlv2TbltDevicePkg/PlatformInitPei/PchInitPeim.c:513:36: error: variable 'PlatformCpuInfo' set but not used [-Werror=unused-but-set-variable] Vlv2TbltDevicePkg/PlatformInitPei/PchInitPeim.c:512:35: error: variable 'LpcRevisionID' set but not used [-Werror=unused-but-set-variable] Vlv2TbltDevicePkg/PlatformInitPei/MemoryCallback.c: In function 'EndOfPeiPpiNotifyCallback': Vlv2TbltDevicePkg/PlatformInitPei/MemoryCallback.c:64:31: error: variable 'MemoryTop' set but not used [-Werror=unused-but-set-variable] v2: Also remove the variable, Hob, in PchInitPeim.c:IchRcrbInit() since no one really uses it. Cc: David Wei <david.wei@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>
This commit is contained in:
@@ -52,7 +52,6 @@ EndOfPeiPpiNotifyCallback (
|
||||
installed.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
EndOfPeiPpiNotifyCallback (
|
||||
@@ -100,7 +99,6 @@ EndOfPeiPpiNotifyCallback (
|
||||
PlatformInfo->PciData.PciResourceMem32Limit)
|
||||
);
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(EFI_D_ERROR,
|
||||
"PCI64 BASE: %lX Limit: %lX\n",
|
||||
PlatformInfo->PciData.PciResourceMem64Base,
|
||||
|
@@ -500,18 +500,8 @@ IchRcrbInit (
|
||||
MmioAnd8 (PciD31F0RegBase + R_PCH_LPC_UART_CTRL, (UINT8) ~B_PCH_LPC_UART_CTRL_COM1_EN);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||
IN SYSTEM_CONFIGURATION *SystemConfiguration
|
||||
)
|
||||
{
|
||||
UINT8 LpcRevisionID;
|
||||
EFI_PLATFORM_CPU_INFO *PlatformCpuInfo;
|
||||
EFI_PEI_HOB_POINTERS Hob;
|
||||
|
||||
VOID
|
||||
IchRcrbInit (
|
||||
@@ -530,8 +520,6 @@ IchRcrbInit (
|
||||
if ((BootMode != BOOT_IN_RECOVERY_MODE) && (BootMode != BOOT_ON_FLASH_UPDATE)) {
|
||||
MmioOr8 (RCBA_BASE_ADDRESS + R_PCH_RCRB_GCS, B_PCH_RCRB_GCS_BILD);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
//
|
||||
// Disable the Watchdog timer expiration from causing a system reset
|
||||
|
Reference in New Issue
Block a user