/*++\r
\r
-Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>\r
(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
}\r
\r
//\r
- // Deep enumerate the next level bus\r
+ // If the PCI bridge is initialized then enumerate the next level bus\r
//\r
- Status = PciPciDeviceInfoCollector (\r
- PciIoDevice,\r
- (UINT8) (SecBus)\r
- );\r
-\r
+ if (SecBus != 0) {\r
+ Status = PciPciDeviceInfoCollector (\r
+ PciIoDevice,\r
+ (UINT8) (SecBus)\r
+ );\r
+ }\r
}\r
\r
if (Func == 0 && !IS_PCI_MULTI_FUNC (&Pci)) {\r