adjust error process code position.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9249 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff
2009-09-08 08:13:08 +00:00
parent 2277ab96eb
commit 9d0ece87aa

View File

@ -189,6 +189,10 @@ IDEBusDriverBindingSupported (
return EFI_SUCCESS; return EFI_SUCCESS;
} }
if (EFI_ERROR (Status)) {
return Status;
}
// //
// If protocols were opened normally, closed it // If protocols were opened normally, closed it
// //
@ -199,10 +203,6 @@ IDEBusDriverBindingSupported (
Controller Controller
); );
if (EFI_ERROR (Status)) {
return Status;
}
// //
// Open the EFI Device Path protocol needed to perform the supported test // Open the EFI Device Path protocol needed to perform the supported test
// //