summaryrefslogtreecommitdiffstats
path: root/CorebootPayloadPkg
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-03-24 10:47:03 +0100
committerLaszlo Ersek <lersek@redhat.com>2016-03-25 10:51:54 +0100
commitca469b47283b802be6228c6bfa78d201ceecdd27 (patch)
tree563a97174b0fdebe5b4a99197efd9f88d5306958 /CorebootPayloadPkg
parentf0bbcdf80df932cb72aae4707ad4274fdfcc5726 (diff)
downloadedk2-ca469b47283b802be6228c6bfa78d201ceecdd27.tar.gz
edk2-ca469b47283b802be6228c6bfa78d201ceecdd27.tar.bz2
edk2-ca469b47283b802be6228c6bfa78d201ceecdd27.zip
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>
Diffstat (limited to 'CorebootPayloadPkg')
-rw-r--r--CorebootPayloadPkg/FbGop/FbGop.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/CorebootPayloadPkg/FbGop/FbGop.c b/CorebootPayloadPkg/FbGop/FbGop.c
index 196efe8c29..37d6def7f7 100644
--- a/CorebootPayloadPkg/FbGop/FbGop.c
+++ b/CorebootPayloadPkg/FbGop/FbGop.c
@@ -434,7 +434,6 @@ FbGopChildHandleInstall (
FB_VIDEO_DEV *FbGopPrivate;
PCI_TYPE00 Pci;
ACPI_ADR_DEVICE_PATH AcpiDeviceNode;
- BOOLEAN ProtocolInstalled;
//
// Allocate the private device structure for video device
@@ -559,8 +558,6 @@ FbGopChildHandleInstall (
//goto Done;
}
- ProtocolInstalled = FALSE;
-
//
// Creat child handle and install Graphics Output Protocol,EDID Discovered/Active Protocol
//
@@ -590,7 +587,6 @@ FbGopChildHandleInstall (
if (EFI_ERROR (Status)) {
goto Done;
}
- ProtocolInstalled = TRUE;
}
Done:
@@ -765,16 +761,15 @@ HasChildHandle (
EFI_OPEN_PROTOCOL_INFORMATION_ENTRY *OpenInfoBuffer;
UINTN EntryCount;
BOOLEAN HasChild;
- EFI_STATUS Status;
EntryCount = 0;
HasChild = FALSE;
- Status = gBS->OpenProtocolInformation (
- Controller,
- &gEfiPciIoProtocolGuid,
- &OpenInfoBuffer,
- &EntryCount
- );
+ gBS->OpenProtocolInformation (
+ Controller,
+ &gEfiPciIoProtocolGuid,
+ &OpenInfoBuffer,
+ &EntryCount
+ );
for (Index = 0; Index < EntryCount; Index++) {
if ((OpenInfoBuffer[Index].Attributes & EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER) != 0) {
HasChild = TRUE;