Clean up codes which are related with status code.
[mirror_edk2.git] / EdkModulePkg / Core / Pei / Memory / MemoryServices.c
index eb99a8040db68771a1ed8df34685c3bb0c89413b..3da3e53185c660dc701218d75f809ef90288d35b 100644 (file)
@@ -306,7 +306,7 @@ Returns:
  // it should use AllocatePages service instead.\r
  //\r
  ASSERT (Size < 0x10000 - sizeof (EFI_HOB_MEMORY_POOL));\r
- Status = PeiCoreCreateHob (\r
+ Status = PeiServicesCreateHob (\r
              EFI_HOB_TYPE_PEI_MEMORY_POOL,\r
              (UINT16)(sizeof (EFI_HOB_MEMORY_POOL) + Size),\r
              (VOID **)&Hob\r