Vlv2TbltDevicePkg/SmBiosMiscDxe: Remove unused variables
Fix the following errors from gcc: Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscOemType0x90Function.c: In function ?JudgeHandleIsPCIDevice?: Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscOemType0x90Function.c:164:22: error: variable ?DevicePath? set but not used [-Werror=unused-but-set-variable] Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscOemType0x90Function.c: In function ?AddSmbiosT0x90Callback?: Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscOemType0x90Function.c:292:28: error: variable ?ForType90InputData? set but not used [-Werror=unused-but-set-variable] Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscProcessorInformationFunction.c: In function ?MiscProcessorInformationFunction?: Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscProcessorInformationFunction.c:191:37: error: variable ?SrcDataSize? set but not used [-Werror=unused-but-set-variable] Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscProcessorCacheFunction.c: In function ?MiscProcessorCacheFunction?: Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscProcessorCacheFunction.c:78:34: error: variable ?SrcDataSize? set but not used [-Werror=unused-but-set-variable] Cc: David Wei <david.wei@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:
@@ -152,7 +152,6 @@ JudgeHandleIsPCIDevice(
|
||||
return Status;
|
||||
}
|
||||
|
||||
EFI_STATUS
|
||||
EFI_STATUS
|
||||
JudgeHandleIsPCIDevice(
|
||||
EFI_HANDLE Handle,
|
||||
@@ -160,7 +159,6 @@ JudgeHandleIsPCIDevice(
|
||||
UINT8 Funs
|
||||
)
|
||||
{
|
||||
EFI_DEVICE_PATH *DPath;
|
||||
EFI_STATUS Status;
|
||||
EFI_DEVICE_PATH *DPath;
|
||||
|
||||
@@ -280,7 +278,6 @@ AddSmbiosT0x90Callback (
|
||||
AddSmbiosT0x90Callback (
|
||||
IN EFI_EVENT Event,
|
||||
IN VOID *Context
|
||||
)
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
@@ -289,8 +286,6 @@ AddSmbiosT0x90Callback (
|
||||
UINTN GOPStrLen = 0;
|
||||
UINTN SteppingStrLen = 0;
|
||||
SMBIOS_TABLE_TYPE90 *SmbiosRecord;
|
||||
EFI_MISC_OEM_TYPE_0x90 *ForType90InputData;
|
||||
CHAR16 *SECVer;
|
||||
EFI_SMBIOS_HANDLE SmbiosHandle;
|
||||
CHAR16 *SECVer;
|
||||
CHAR16 *uCodeVer;
|
||||
|
@@ -66,7 +66,6 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscProcessorCache)
|
||||
SMBIOS_TABLE_TYPE7 *SmbiosRecordL2;
|
||||
|
||||
EFI_CACHE_SRAM_TYPE_DATA CacheSramType;
|
||||
CHAR16 *SocketDesignation;
|
||||
CHAR16 *SocketDesignation;
|
||||
CHAR8 *OptionalStrStart;
|
||||
UINTN SocketStrLen;
|
||||
@@ -113,7 +112,6 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscProcessorCache)
|
||||
|
||||
do {
|
||||
Status = DataHub->GetNextRecord (
|
||||
DataHub,
|
||||
DataHub,
|
||||
&MonotonicCount,
|
||||
NULL,
|
||||
|
@@ -179,7 +179,6 @@ MISC_SMBIOS_TABLE_FUNCTION (MiscProcessorInformation)
|
||||
UINT16 L1CacheHandle=0;
|
||||
UINT16 L2CacheHandle=0;
|
||||
UINT16 L3CacheHandle=0;
|
||||
UINTN NumberOfEnabledProcessors=0 ;
|
||||
UINTN NumberOfEnabledProcessors=0 ;
|
||||
UINTN NumberOfProcessors=0;
|
||||
UINT64 Frequency = 0;
|
||||
@@ -225,7 +224,6 @@ MISC_SMBIOS_TABLE_FUNCTION (MiscProcessorInformation)
|
||||
do {
|
||||
Status = DataHub->GetNextRecord (
|
||||
DataHub,
|
||||
&MonotonicCount,
|
||||
&MonotonicCount,
|
||||
NULL,
|
||||
&Record
|
||||
|
Reference in New Issue
Block a user