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
|
||||
|
Reference in New Issue
Block a user