summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-07 03:43:00 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-07 03:43:00 +0000
commita1d887b7ab3cbd1a989f78954daabdd4a12eaf1d (patch)
tree22a6f6f5b34ab19d79cd055a11ccd7d1e17da8eb /IntelFrameworkModulePkg
parenta1a99cca132359b0f08b66a73e54f6008f90a28e (diff)
downloadedk2-platforms-a1d887b7ab3cbd1a989f78954daabdd4a12eaf1d.tar.xz
Merger tracker:Fixed a Pci bus driver logic error
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4799 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c
index b5b35687a6..edb12f6bb0 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c
@@ -1046,10 +1046,14 @@ Returns:
//
for (DevIndex = 0; DevIndex < RemovedPciDevNum; DevIndex++) {
if (PciResNode->PciDev == RemovedPciDev[DevIndex]) {
- continue;
+ break;
}
}
+ if (DevIndex != RemovedPciDevNum) {
+ continue;
+ }
+
//
// Remove the device if it isn't in the array
//