diff options
author | Star Zeng <star.zeng@intel.com> | 2014-10-31 07:20:26 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@Edk2> | 2014-10-31 07:20:26 +0000 |
commit | a75cf433d167aba7674e4b230f59ee915ebe64a8 (patch) | |
tree | f23702d916cf3a0f99af0cc6cbb57fc3c4d0d4d4 /MdePkg | |
parent | 3f103c08bac599bd68d28fb5dde982049469b983 (diff) | |
download | edk2-a75cf433d167aba7674e4b230f59ee915ebe64a8.tar.gz edk2-a75cf433d167aba7674e4b230f59ee915ebe64a8.tar.bz2 edk2-a75cf433d167aba7674e4b230f59ee915ebe64a8.zip |
MdePkg/IntelFrameworkPkg HobLib: Update BuildResourceDescriptorWithOwnerHob()
to align the behavior of BuildResourceDescriptorHob().
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16279 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Library/PeiHobLib/HobLib.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/MdePkg/Library/PeiHobLib/HobLib.c b/MdePkg/Library/PeiHobLib/HobLib.c index a608325c65..f853452f56 100644 --- a/MdePkg/Library/PeiHobLib/HobLib.c +++ b/MdePkg/Library/PeiHobLib/HobLib.c @@ -327,10 +327,11 @@ BuildResourceDescriptorWithOwnerHob ( ) { EFI_HOB_RESOURCE_DESCRIPTOR *Hob; - EFI_STATUS Status; - - Status = PeiServicesCreateHob (EFI_HOB_TYPE_RESOURCE_DESCRIPTOR, sizeof (EFI_HOB_RESOURCE_DESCRIPTOR), (void **)&Hob); - ASSERT_EFI_ERROR (Status); +
+ Hob = InternalPeiCreateHob (EFI_HOB_TYPE_RESOURCE_DESCRIPTOR, (UINT16) sizeof (EFI_HOB_RESOURCE_DESCRIPTOR));
+ if (Hob == NULL) {
+ return;
+ }
Hob->ResourceType = ResourceType; Hob->ResourceAttribute = ResourceAttribute; |