summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/DxeServicesLib/Allocate.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/DxeServicesLib/Allocate.c')
-rw-r--r--MdePkg/Library/DxeServicesLib/Allocate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/MdePkg/Library/DxeServicesLib/Allocate.c b/MdePkg/Library/DxeServicesLib/Allocate.c
index efb65768bb..26f249b410 100644
--- a/MdePkg/Library/DxeServicesLib/Allocate.c
+++ b/MdePkg/Library/DxeServicesLib/Allocate.c
@@ -33,8 +33,8 @@ AllocatePeiAccessiblePages (
IN UINTN Pages
)
{
- EFI_STATUS Status;
- EFI_PHYSICAL_ADDRESS Memory;
+ EFI_STATUS Status;
+ EFI_PHYSICAL_ADDRESS Memory;
if (Pages == 0) {
return NULL;
@@ -44,5 +44,6 @@ AllocatePeiAccessiblePages (
if (EFI_ERROR (Status)) {
return NULL;
}
+
return (VOID *)(UINTN)Memory;
}