mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
CorebootPayloadPkg: FbGop: remove set but unused variables
Cc: Maurice Ma <maurice.ma@intel.com> Cc: Prince Agyeman <prince.agyeman@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com>
This commit is contained in:
parent
f0bbcdf80d
commit
ca469b4728
@ -434,7 +434,6 @@ FbGopChildHandleInstall (
|
|||||||
FB_VIDEO_DEV *FbGopPrivate;
|
FB_VIDEO_DEV *FbGopPrivate;
|
||||||
PCI_TYPE00 Pci;
|
PCI_TYPE00 Pci;
|
||||||
ACPI_ADR_DEVICE_PATH AcpiDeviceNode;
|
ACPI_ADR_DEVICE_PATH AcpiDeviceNode;
|
||||||
BOOLEAN ProtocolInstalled;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Allocate the private device structure for video device
|
// Allocate the private device structure for video device
|
||||||
@ -559,8 +558,6 @@ FbGopChildHandleInstall (
|
|||||||
//goto Done;
|
//goto Done;
|
||||||
}
|
}
|
||||||
|
|
||||||
ProtocolInstalled = FALSE;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Creat child handle and install Graphics Output Protocol,EDID Discovered/Active Protocol
|
// Creat child handle and install Graphics Output Protocol,EDID Discovered/Active Protocol
|
||||||
//
|
//
|
||||||
@ -590,7 +587,6 @@ FbGopChildHandleInstall (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
ProtocolInstalled = TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Done:
|
Done:
|
||||||
@ -765,16 +761,15 @@ HasChildHandle (
|
|||||||
EFI_OPEN_PROTOCOL_INFORMATION_ENTRY *OpenInfoBuffer;
|
EFI_OPEN_PROTOCOL_INFORMATION_ENTRY *OpenInfoBuffer;
|
||||||
UINTN EntryCount;
|
UINTN EntryCount;
|
||||||
BOOLEAN HasChild;
|
BOOLEAN HasChild;
|
||||||
EFI_STATUS Status;
|
|
||||||
|
|
||||||
EntryCount = 0;
|
EntryCount = 0;
|
||||||
HasChild = FALSE;
|
HasChild = FALSE;
|
||||||
Status = gBS->OpenProtocolInformation (
|
gBS->OpenProtocolInformation (
|
||||||
Controller,
|
Controller,
|
||||||
&gEfiPciIoProtocolGuid,
|
&gEfiPciIoProtocolGuid,
|
||||||
&OpenInfoBuffer,
|
&OpenInfoBuffer,
|
||||||
&EntryCount
|
&EntryCount
|
||||||
);
|
);
|
||||||
for (Index = 0; Index < EntryCount; Index++) {
|
for (Index = 0; Index < EntryCount; Index++) {
|
||||||
if ((OpenInfoBuffer[Index].Attributes & EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER) != 0) {
|
if ((OpenInfoBuffer[Index].Attributes & EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER) != 0) {
|
||||||
HasChild = TRUE;
|
HasChild = TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user