summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-03-18 19:50:08 +0100
committerLaszlo Ersek <lersek@redhat.com>2016-03-25 10:52:16 +0100
commit1e8561d18118f12e97c4441e9a0d7e8e0b9c5dde (patch)
tree2a7aa2ced96d21d28a16afcbe9abfb67804ab269
parent92658c8af1245bef09be5e1d1d13b55a4567db3b (diff)
downloadedk2-1e8561d18118f12e97c4441e9a0d7e8e0b9c5dde.tar.gz
edk2-1e8561d18118f12e97c4441e9a0d7e8e0b9c5dde.tar.bz2
edk2-1e8561d18118f12e97c4441e9a0d7e8e0b9c5dde.zip
IntelFrameworkModulePkg: BiosVideo: remove set but unused variable
Cc: Jeff Fan <jeff.fan@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>
-rw-r--r--IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/BiosVideo.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/BiosVideo.c b/IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/BiosVideo.c
index 9f7f72a3f2..f1c8b29508 100644
--- a/IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/BiosVideo.c
+++ b/IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/BiosVideo.c
@@ -1257,16 +1257,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;