mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-30 00:54:06 +02:00
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:
parent
5fc1373db6
commit
ec9b12b9c6
@ -52,7 +52,6 @@ EndOfPeiPpiNotifyCallback (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
UINT64 MemoryTop;
|
|
||||||
UINT64 LowUncableBase;
|
UINT64 LowUncableBase;
|
||||||
EFI_PLATFORM_INFO_HOB *PlatformInfo;
|
EFI_PLATFORM_INFO_HOB *PlatformInfo;
|
||||||
UINT32 HecBaseHigh;
|
UINT32 HecBaseHigh;
|
||||||
@ -100,7 +99,6 @@ EndOfPeiPpiNotifyCallback (
|
|||||||
|
|
||||||
LowUncableBase = PlatformInfo->MemData.MemMaxTolm;
|
LowUncableBase = PlatformInfo->MemData.MemMaxTolm;
|
||||||
LowUncableBase &= (0x0FFF00000);
|
LowUncableBase &= (0x0FFF00000);
|
||||||
MemoryTop = (0x100000000);
|
|
||||||
|
|
||||||
if (BootMode != BOOT_ON_S3_RESUME) {
|
if (BootMode != BOOT_ON_S3_RESUME) {
|
||||||
//
|
//
|
||||||
|
@ -500,18 +500,8 @@ IchRcrbInit (
|
|||||||
IN SYSTEM_CONFIGURATION *SystemConfiguration
|
IN SYSTEM_CONFIGURATION *SystemConfiguration
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINT8 LpcRevisionID;
|
|
||||||
EFI_PLATFORM_CPU_INFO *PlatformCpuInfo;
|
|
||||||
EFI_PEI_HOB_POINTERS Hob;
|
|
||||||
EFI_BOOT_MODE BootMode;
|
EFI_BOOT_MODE BootMode;
|
||||||
|
|
||||||
//
|
|
||||||
// Get Platform Info HOB
|
|
||||||
//
|
|
||||||
Hob.Raw = GetFirstGuidHob (&gEfiPlatformCpuInfoGuid);
|
|
||||||
ASSERT (Hob.Raw != NULL);
|
|
||||||
PlatformCpuInfo = GET_GUID_HOB_DATA(Hob.Raw);
|
|
||||||
|
|
||||||
(*PeiServices)->GetBootMode(PeiServices, &BootMode);
|
(*PeiServices)->GetBootMode(PeiServices, &BootMode);
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -530,8 +520,6 @@ IchRcrbInit (
|
|||||||
//
|
//
|
||||||
// Initial RCBA according to the PeiRCBA table
|
// Initial RCBA according to the PeiRCBA table
|
||||||
//
|
//
|
||||||
LpcRevisionID = PchLpcPciCfg8 (R_PCH_LPC_RID_CC);
|
|
||||||
|
|
||||||
if ((BootMode == BOOT_ON_S3_RESUME)) {
|
if ((BootMode == BOOT_ON_S3_RESUME)) {
|
||||||
//
|
//
|
||||||
// We are resuming from S3
|
// We are resuming from S3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user