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>
This commit is contained in:
Kun Qin 2018-07-12 23:44:35 +00:00 committed by mergify[bot]
parent 7aaee521a1
commit f91211049c

View File

@ -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 {