summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Bus
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-09-08 08:13:08 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-09-08 08:13:08 +0000
commit9d0ece87aa3eb4f1fe40a867eae7fa8281c48cd9 (patch)
treeebe302a0a0148044ee6e9e650d87ba7a4211be96 /IntelFrameworkModulePkg/Bus
parent2277ab96eb366cfbc8dc6ad12717cfa669e1b12d (diff)
downloadedk2-platforms-9d0ece87aa3eb4f1fe40a867eae7fa8281c48cd9.tar.xz
adjust error process code position.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9249 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Bus')
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBus.c b/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBus.c
index 0d182cf562..4bd4413242 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBus.c
+++ b/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBus.c
@@ -189,6 +189,10 @@ IDEBusDriverBindingSupported (
return EFI_SUCCESS;
}
+ if (EFI_ERROR (Status)) {
+ return Status;
+ }
+
//
// If protocols were opened normally, closed it
//
@@ -199,10 +203,6 @@ IDEBusDriverBindingSupported (
Controller
);
- if (EFI_ERROR (Status)) {
- return Status;
- }
-
//
// Open the EFI Device Path protocol needed to perform the supported test
//