X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FBus%2FPci%2FPciBusDxe%2FPciEnumerator.c;h=732914313607ec2d44f72e745b6a977abe206c4b;hp=ee6656de70ca243c0234bd77ffd97ade3bb62907;hb=d838c7449faa02cc3a205b0efdcf40d6d4817dee;hpb=6e67fec07f7fe4033da696eb2d08c5617edaa590 diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c index ee6656de70..7329143136 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c @@ -29,7 +29,6 @@ PciEnumerator ( IN EFI_HANDLE Controller ) { - EFI_HANDLE Handle; EFI_HANDLE HostBridgeHandle; EFI_STATUS Status; EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc; @@ -134,9 +133,8 @@ PciEnumerator ( gFullEnumeration = FALSE; - Handle = NULL; Status = gBS->InstallProtocolInterface ( - &Handle, + &HostBridgeHandle, &gEfiPciEnumerationCompleteProtocolGuid, EFI_NATIVE_INTERFACE, NULL