mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
92658c8af1
commit
1e8561d181
|
@ -1257,16 +1257,15 @@ HasChildHandle (
|
||||||
EFI_OPEN_PROTOCOL_INFORMATION_ENTRY *OpenInfoBuffer;
|
EFI_OPEN_PROTOCOL_INFORMATION_ENTRY *OpenInfoBuffer;
|
||||||
UINTN EntryCount;
|
UINTN EntryCount;
|
||||||
BOOLEAN HasChild;
|
BOOLEAN HasChild;
|
||||||
EFI_STATUS Status;
|
|
||||||
|
|
||||||
EntryCount = 0;
|
EntryCount = 0;
|
||||||
HasChild = FALSE;
|
HasChild = FALSE;
|
||||||
Status = gBS->OpenProtocolInformation (
|
gBS->OpenProtocolInformation (
|
||||||
Controller,
|
Controller,
|
||||||
&gEfiPciIoProtocolGuid,
|
&gEfiPciIoProtocolGuid,
|
||||||
&OpenInfoBuffer,
|
&OpenInfoBuffer,
|
||||||
&EntryCount
|
&EntryCount
|
||||||
);
|
);
|
||||||
for (Index = 0; Index < EntryCount; Index++) {
|
for (Index = 0; Index < EntryCount; Index++) {
|
||||||
if ((OpenInfoBuffer[Index].Attributes & EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER) != 0) {
|
if ((OpenInfoBuffer[Index].Attributes & EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER) != 0) {
|
||||||
HasChild = TRUE;
|
HasChild = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue