diff options
author | Fu Siyuan <siyuan.fu@intel.com> | 2017-12-22 14:13:12 +0800 |
---|---|---|
committer | Fu Siyuan <siyuan.fu@intel.com> | 2017-12-22 15:33:48 +0800 |
commit | c7285227e75dfc92843e0814b59ce38ed2e80764 (patch) | |
tree | 14a7cb56df964a99f1f71272d444664000f291dc /MdeModulePkg/Library/DxeDpcLib | |
parent | 15720a6cde27343e732dbe81aaee1764e26d20e0 (diff) | |
download | edk2-c7285227e75dfc92843e0814b59ce38ed2e80764.zip edk2-c7285227e75dfc92843e0814b59ce38ed2e80764.tar.gz edk2-c7285227e75dfc92843e0814b59ce38ed2e80764.tar.bz2 |
MdeModulePkg/DpcLib: return error if failed to locate DPC protocol.
This patch updates the constructor of DpcLib to return error if failed to
locate DPC protocol.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
Diffstat (limited to 'MdeModulePkg/Library/DxeDpcLib')
-rw-r--r-- | MdeModulePkg/Library/DxeDpcLib/DpcLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/DxeDpcLib/DpcLib.c b/MdeModulePkg/Library/DxeDpcLib/DpcLib.c index 6eda8ca..ddc3e0a 100644 --- a/MdeModulePkg/Library/DxeDpcLib/DpcLib.c +++ b/MdeModulePkg/Library/DxeDpcLib/DpcLib.c @@ -45,7 +45,7 @@ DpcLibConstructor ( Status = gBS->LocateProtocol (&gEfiDpcProtocolGuid, NULL, (VOID **)&mDpc);
ASSERT_EFI_ERROR (Status);
- return EFI_SUCCESS;
+ return Status;
}
/**
|