From 9d0ece87aa3eb4f1fe40a867eae7fa8281c48cd9 Mon Sep 17 00:00:00 2001 From: vanjeff Date: Tue, 8 Sep 2009 08:13:08 +0000 Subject: adjust error process code position. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9249 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBus.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'IntelFrameworkModulePkg/Bus/Pci') 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 // -- cgit v1.2.3