Vlv2TbltDevicePkg/VlvPlatformInitDxe: Remove unused variables
Fix the following errors from gcc: Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c: In function ?GetIntegratedIntelVbtPtr?: Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c:145:33: error: variable ?VbtSize? set but not used [-Werror=unused-but-set-variable] Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c: In function ?JudgeHandleIsPCIDevice?: Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c:418:22: error: variable ?DevicePath? set but not used [-Werror=unused-but-set-variable] Cc: David Wei <david.wei@intel.com> Cc: "Wu, Hao A" <hao.a.wu@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:
@@ -133,7 +133,6 @@ GetIntegratedIntelVbtPtr (
|
||||
@retval EFI_SUCCESS VBT data was returned.
|
||||
@retval EFI_NOT_FOUND VBT data not found.
|
||||
@exception EFI_UNSUPPORTED Invalid signature in VBT data.
|
||||
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -174,7 +173,6 @@ GetIntegratedIntelVbtPtr (
|
||||
Status = Fv->ReadSection (
|
||||
Fv,
|
||||
&gBmpImageGuid,
|
||||
EFI_SECTION_RAW,
|
||||
EFI_SECTION_RAW,
|
||||
0,
|
||||
(void **)&Buffer,
|
||||
@@ -406,7 +404,6 @@ JudgeHandleIsPCIDevice(
|
||||
return Status;
|
||||
}
|
||||
|
||||
EFI_STATUS
|
||||
EFI_STATUS
|
||||
JudgeHandleIsPCIDevice(
|
||||
EFI_HANDLE Handle,
|
||||
@@ -414,7 +411,6 @@ JudgeHandleIsPCIDevice(
|
||||
UINT8 Funs
|
||||
)
|
||||
{
|
||||
EFI_DEVICE_PATH *DPath;
|
||||
EFI_STATUS Status;
|
||||
EFI_DEVICE_PATH *DPath;
|
||||
|
||||
|
Reference in New Issue
Block a user