FB_VIDEO_DEV *FbGopPrivate;\r
PCI_TYPE00 Pci;\r
ACPI_ADR_DEVICE_PATH AcpiDeviceNode;\r
- BOOLEAN ProtocolInstalled;\r
\r
//\r
// Allocate the private device structure for video device\r
//goto Done; \r
}\r
\r
- ProtocolInstalled = FALSE;\r
- \r
//\r
// Creat child handle and install Graphics Output Protocol,EDID Discovered/Active Protocol\r
//\r
if (EFI_ERROR (Status)) {\r
goto Done;\r
}\r
- ProtocolInstalled = TRUE;\r
}\r
\r
Done:\r
EFI_OPEN_PROTOCOL_INFORMATION_ENTRY *OpenInfoBuffer;\r
UINTN EntryCount;\r
BOOLEAN HasChild;\r
- EFI_STATUS Status;\r
\r
EntryCount = 0;\r
HasChild = FALSE;\r
- Status = gBS->OpenProtocolInformation (\r
- Controller,\r
- &gEfiPciIoProtocolGuid,\r
- &OpenInfoBuffer,\r
- &EntryCount\r
- );\r
+ gBS->OpenProtocolInformation (\r
+ Controller,\r
+ &gEfiPciIoProtocolGuid,\r
+ &OpenInfoBuffer,\r
+ &EntryCount\r
+ );\r
for (Index = 0; Index < EntryCount; Index++) {\r
if ((OpenInfoBuffer[Index].Attributes & EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER) != 0) {\r
HasChild = TRUE;\r