diff options
author | Javeed, Ashraf <ashraf.javeed@intel.com> | 2019-05-27 18:23:56 +0800 |
---|---|---|
committer | Hao A Wu <hao.a.wu@intel.com> | 2019-07-01 15:36:09 +0800 |
commit | 2603fce126507568f3ce3a4bd67ed51139e3b332 (patch) | |
tree | 39fedb37e6fa5de4cf61dd523cfeffedd31254d0 | |
parent | 0889500ce1fc7d8784c47354ef79d148e2a55ccd (diff) | |
download | edk2-2603fce126507568f3ce3a4bd67ed51139e3b332.tar.gz edk2-2603fce126507568f3ce3a4bd67ed51139e3b332.tar.bz2 edk2-2603fce126507568f3ce3a4bd67ed51139e3b332.zip |
PciBusDxe: duplicate node insertion for every PPB device in the system
https://bugzilla.tianocore.org/show_bug.cgi?id=1796
Bug fixed in PciBusDxe\PciLib.c.
Removed the redundant second call to PciSearchDevice sub-routine when the
PCD for the Hot-Plug support is disabled.
Signed-off-by: Ashraf Javeed <Ashraf.javeed@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Acked-by: Hao A Wu <hao.a.wu@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
-rw-r--r-- | MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c index f0d9f45c4a..5b55fb5d3b 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c @@ -1114,24 +1114,7 @@ PciScanBus ( //
// For PPB
//
- if (!FeaturePcdGet (PcdPciBusHotplugDeviceSupport)) {
- //
- // If Hot Plug is not supported,
- // get the bridge information
- //
- Status = PciSearchDevice (
- Bridge,
- &Pci,
- StartBusNumber,
- Device,
- Func,
- &PciDevice
- );
-
- if (EFI_ERROR (Status)) {
- return Status;
- }
- } else {
+ if (FeaturePcdGet (PcdPciBusHotplugDeviceSupport)) {
//
// If Hot Plug is supported,
// Get the bridge information
|