summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2012-07-11 19:08:40 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2012-07-11 19:08:40 +0000
commit2c46dd239b4c50e9b76a1ef72a9011c5754f5c43 (patch)
tree302706e876cb7de534af3132fa9e18c25070cbba
parentb113ddc3d85a200ed93427a27468097bec58c3b3 (diff)
downloadedk2-platforms-2c46dd239b4c50e9b76a1ef72a9011c5754f5c43.tar.xz
ShellPkg: update pci enumeration routine for platforms with multiple pci segments.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eugene Cohen eugene@hp.com reviewed-by: jaben carsey <jaben.carsey@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13524 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c
index 017c33780a..ce55d6e332 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c
@@ -2464,13 +2464,11 @@ PciFindProtocolInterface (
{
UINTN Index;
EFI_STATUS Status;
- BOOLEAN FoundInterface;
EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *Descriptors;
UINT16 MinBus;
UINT16 MaxBus;
BOOLEAN IsEnd;
- FoundInterface = FALSE;
//
// Go through all handles, until the one meets the criteria is found
//
@@ -2502,17 +2500,12 @@ PciFindProtocolInterface (
}
if (MinBus <= Bus && MaxBus >= Bus) {
- FoundInterface = TRUE;
- break;
+ return EFI_SUCCESS;
}
}
}
- if (FoundInterface) {
- return EFI_SUCCESS;
- } else {
- return EFI_INVALID_PARAMETER;
- }
+ return EFI_NOT_FOUND;
}
/**