Vlv2TbltDevicePkg/MultiPlatformLib: Remove the unused variables
Fix the following errors from gcc: Vlv2TbltDevicePkg/Library/MultiPlatformLib/MultiPlatformLib.c: In function ?MultiPlatformInfoInit?: Vlv2TbltDevicePkg/Library/MultiPlatformLib/MultiPlatformLib.c:47:14: error: variable ?Status? set but not used [-Werror=unused-but-set-variable] Vlv2TbltDevicePkg/Library/MultiPlatformLib/BoardClkGens/BoardClkGens.c: In function ?ReadClockGeneratorID?: Vlv2TbltDevicePkg/Library/MultiPlatformLib/BoardClkGens/BoardClkGens.c:222:33: error: variable ?Status? set but not used [-Werror=unused-but-set-variable] Vlv2TbltDevicePkg/Library/MultiPlatformLib/BoardClkGens/BoardClkGens.c: In function ?ConfigurePlatformClocks?: Vlv2TbltDevicePkg/Library/MultiPlatformLib/BoardClkGens/BoardClkGens.c:283:33: error: variable ?ClockGenID? set but not used [-Werror=unused-but-set-variable] Also fix the coding style of MultiPlatformInfoInit() 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:
@@ -210,7 +210,6 @@ ReadClockGeneratorID (
|
||||
|
||||
|
||||
@retval EFI_SUCCESS Operation success.
|
||||
|
||||
|
||||
**/
|
||||
UINT8
|
||||
@@ -222,7 +221,7 @@ ReadClockGeneratorID (
|
||||
{
|
||||
EFI_SMBUS_DEVICE_ADDRESS SlaveAddress;
|
||||
UINT8 Buffer[MAX_CLOCK_GENERATOR_BUFFER_LENGTH];
|
||||
UINTN Length;
|
||||
UINTN Length;
|
||||
EFI_SMBUS_DEVICE_COMMAND Command;
|
||||
|
||||
//
|
||||
@@ -271,7 +270,6 @@ ConfigurePlatformClocks (
|
||||
// Not supported by Hybrid model.
|
||||
//
|
||||
EFI_STATUS Status;
|
||||
UINT8 *ConfigurationTable;
|
||||
UINT8 *ConfigurationTable;
|
||||
|
||||
CLOCK_GENERATOR_TYPE ClockType = ClockGeneratorCk505;
|
||||
@@ -322,7 +320,6 @@ ConfigurePlatformClocks (
|
||||
SlaveAddress,
|
||||
Command,
|
||||
EfiSmbusReadByte,
|
||||
FALSE,
|
||||
FALSE,
|
||||
&Length,
|
||||
&Data
|
||||
|
@@ -35,7 +35,6 @@ MultiPlatformInfoInit (
|
||||
|
||||
@retval EFI_SUCCESS Memory initialization completed successfully.
|
||||
@retval Others All other error conditions encountered result in an ASSERT.
|
||||
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -95,7 +94,11 @@ MultiPlatformInfoInit (
|
||||
PlatformInfoHob->MemData.MemTolm = PlatformInfoHob->MemData.MemMaxTolm;
|
||||
|
||||
//
|
||||
// Platform PCI MMIO Size in unit of 1MB.
|
||||
// Platform PCI MMIO Size in unit of 1MB.
|
||||
//
|
||||
PlatformInfoHob->MemData.MmioSize = 0x1000 - (UINT16)(PlatformInfoHob->MemData.MemMaxTolm >> 20);
|
||||
|
||||
//
|
||||
// Enable ICH IOAPIC
|
||||
//
|
||||
PlatformInfoHob->SysData.SysIoApicEnable = ICH_IOAPIC;
|
||||
@@ -105,18 +108,18 @@ MultiPlatformInfoInit (
|
||||
FlavorTablet,
|
||||
FlavorMobile,
|
||||
FlavorDesktop));
|
||||
|
||||
|
||||
//
|
||||
// Get Platform Info and fill the Hob.
|
||||
//
|
||||
PlatformInfoHob->RevisonId = PLATFORM_INFO_HOB_REVISION;
|
||||
|
||||
|
||||
//
|
||||
// Get GPIO table
|
||||
//
|
||||
MultiPlatformGpioTableInit (PeiServices, PlatformInfoHob);
|
||||
|
||||
//
|
||||
|
||||
//
|
||||
// Program GPIO
|
||||
//
|
||||
MultiPlatformGpioProgram (PeiServices, PlatformInfoHob);
|
||||
|
Reference in New Issue
Block a user