CorebootPayloadPkg: FbGop: remove set but unused variables
authorLaszlo Ersek <lersek@redhat.com>
Thu, 24 Mar 2016 09:47:03 +0000 (10:47 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Fri, 25 Mar 2016 09:51:54 +0000 (10:51 +0100)
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>
CorebootPayloadPkg/FbGop/FbGop.c

index 196efe8..37d6def 100644 (file)
@@ -434,7 +434,6 @@ FbGopChildHandleInstall (
   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
@@ -559,8 +558,6 @@ FbGopChildHandleInstall (
     //goto Done;    \r
   }\r
 \r
-  ProtocolInstalled = FALSE;\r
-  \r
   //\r
   // Creat child handle and install Graphics Output Protocol,EDID Discovered/Active Protocol\r
   //\r
@@ -590,7 +587,6 @@ FbGopChildHandleInstall (
     if (EFI_ERROR (Status)) {\r
       goto Done;\r
     }\r
-    ProtocolInstalled = TRUE;\r
   }\r
   \r
 Done:\r
@@ -765,16 +761,15 @@ HasChildHandle (
   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