From f91211049c1522f7db2ae8f7a509ac270868d0e9 Mon Sep 17 00:00:00 2001 From: Kun Qin Date: Thu, 12 Jul 2018 23:44:35 +0000 Subject: 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 --- MdeModulePkg/Core/Pei/Memory/MemoryServices.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'MdeModulePkg/Core') diff --git a/MdeModulePkg/Core/Pei/Memory/MemoryServices.c b/MdeModulePkg/Core/Pei/Memory/MemoryServices.c index 52f37c9..59613e5 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 { -- cgit v1.1