summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Core
diff options
context:
space:
mode:
authorKun Qin <kuqin@microsoft.com>2018-07-12 23:44:35 +0000
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-07-10 02:10:37 +0000
commitf91211049c1522f7db2ae8f7a509ac270868d0e9 (patch)
tree5cb2527d9464394abeb63de4da3559094408d9b3 /MdeModulePkg/Core
parent7aaee521a1966e71a51b71b73f5e3bbddb6faa31 (diff)
downloadedk2-f91211049c1522f7db2ae8f7a509ac270868d0e9.tar.gz
edk2-f91211049c1522f7db2ae8f7a509ac270868d0e9.tar.bz2
edk2-f91211049c1522f7db2ae8f7a509ac270868d0e9.zip
MdeModulePkg: Remove PeiAllocatePool() Assert
Removes an assert if PeiAllocatePool() fails to allocate memory to defer error handling to the caller so the error can be handled gracefully or asserted at that location which is more specific to the call that led to the allocation. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Diffstat (limited to 'MdeModulePkg/Core')
-rw-r--r--MdeModulePkg/Core/Pei/Memory/MemoryServices.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/MdeModulePkg/Core/Pei/Memory/MemoryServices.c b/MdeModulePkg/Core/Pei/Memory/MemoryServices.c
index 52f37c960e..59613e5131 100644
--- a/MdeModulePkg/Core/Pei/Memory/MemoryServices.c
+++ b/MdeModulePkg/Core/Pei/Memory/MemoryServices.c
@@ -862,8 +862,6 @@ PeiAllocatePool (
(UINT16)(sizeof (EFI_HOB_MEMORY_POOL) + Size),
(VOID **)&Hob
);
- ASSERT_EFI_ERROR (Status);
-
if (EFI_ERROR (Status)) {
*Buffer = NULL;
} else {