summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Bus/Pci
diff options
context:
space:
mode:
Diffstat (limited to 'IntelFrameworkModulePkg/Bus/Pci')
-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
//