summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorTian, Feng <feng.tian@intel.com>2014-02-11 08:00:13 +0000
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2014-02-11 08:00:13 +0000
commit3038da1b93b782334ad346be52d6cbaa19555830 (patch)
tree0e5f4ce40ab693e3e7485888d8c2af4a3cbe3a65 /MdeModulePkg/Universal
parentb80eed7d6d94090bd5b9ddb9720d473b855d20cc (diff)
downloadedk2-3038da1b93b782334ad346be52d6cbaa19555830.zip
edk2-3038da1b93b782334ad346be52d6cbaa19555830.tar.gz
edk2-3038da1b93b782334ad346be52d6cbaa19555830.tar.bz2
Fix incorrect return status in InitializeDebugPortDriver() & DebugPortSupported().
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng <feng.tian@intel.com> Reviewed-by: Li, Elvin <elvin.li@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15217 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r--MdeModulePkg/Universal/DebugPortDxe/DebugPort.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c b/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c
index 00889a2..298b6b2 100644
--- a/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c
+++ b/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c
@@ -142,7 +142,7 @@ InitializeDebugPortDriver (
);
ASSERT_EFI_ERROR (Status);
- return EFI_SUCCESS;
+ return Status;
}
/**
@@ -241,14 +241,14 @@ DebugPortSupported (
return Status;
}
- gBS->CloseProtocol (
- ControllerHandle,
- &gEfiSerialIoProtocolGuid,
- This->DriverBindingHandle,
- ControllerHandle
- );
+ Status = gBS->CloseProtocol (
+ ControllerHandle,
+ &gEfiSerialIoProtocolGuid,
+ This->DriverBindingHandle,
+ ControllerHandle
+ );
- return EFI_SUCCESS;
+ return Status;
}
/**