Skip to content

Commit

Permalink
IntelFrameworkModulePkg: BiosVideo: remove set but unused variable
Browse files Browse the repository at this point in the history
Cc: Jeff Fan <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Jeff Fan <[email protected]>
  • Loading branch information
Laszlo Ersek committed Mar 25, 2016
1 parent 92658c8 commit 1e8561d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/BiosVideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1e8561d

Please sign in to comment.