summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/PiSmmCore/Pool.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Core/PiSmmCore/Pool.c')
-rw-r--r--MdeModulePkg/Core/PiSmmCore/Pool.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/MdeModulePkg/Core/PiSmmCore/Pool.c b/MdeModulePkg/Core/PiSmmCore/Pool.c
index 10a85c47ab..b38a3e0b7e 100644
--- a/MdeModulePkg/Core/PiSmmCore/Pool.c
+++ b/MdeModulePkg/Core/PiSmmCore/Pool.c
@@ -224,11 +224,6 @@ SmmAllocatePool (
return EFI_INVALID_PARAMETER;
}
- if (Size == 0) {
- *Buffer = NULL;
- return EFI_SUCCESS;
- }
-
Size += sizeof (*PoolHdr);
if (Size > MAX_POOL_SIZE) {
Size = EFI_SIZE_TO_PAGES (Size);