Merger tracker:Fixed a Pci bus driver logic error
authorvanjeff <vanjeff@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 7 Mar 2008 03:43:00 +0000 (03:43 +0000)
committervanjeff <vanjeff@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 7 Mar 2008 03:43:00 +0000 (03:43 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@4799 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c

index b5b3568..edb12f6 100644 (file)
@@ -1046,10 +1046,14 @@ Returns:
     //\r
     for (DevIndex = 0; DevIndex < RemovedPciDevNum; DevIndex++) {\r
       if (PciResNode->PciDev == RemovedPciDev[DevIndex]) {\r
     //\r
     for (DevIndex = 0; DevIndex < RemovedPciDevNum; DevIndex++) {\r
       if (PciResNode->PciDev == RemovedPciDev[DevIndex]) {\r
-        continue;\r
+        break;\r
       }\r
     }\r
 \r
       }\r
     }\r
 \r
+    if (DevIndex != RemovedPciDevNum) {\r
+      continue;\r
+    }\r
+\r
     //\r
     // Remove the device if it isn't in the array\r
     //\r
     //\r
     // Remove the device if it isn't in the array\r
     //\r