summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Core/Dxe/Mem/Pool.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/MdeModulePkg/Core/Dxe/Mem/Pool.c b/MdeModulePkg/Core/Dxe/Mem/Pool.c
index 0691c4a..c60761a 100644
--- a/MdeModulePkg/Core/Dxe/Mem/Pool.c
+++ b/MdeModulePkg/Core/Dxe/Mem/Pool.c
@@ -236,7 +236,6 @@ CoreAllocatePoolI (
UINTN Index;
UINTN FSize;
UINTN Offset;
- UINTN Adjustment;
UINTN NoPages;
ASSERT_LOCKED (&gMemoryLock);
@@ -250,7 +249,7 @@ CoreAllocatePoolI (
// we don't get an unaligned access fault later when
// pool_Tail is being initialized
//
- ALIGN_VARIABLE (Size, Adjustment);
+ Size = ALIGN_VARIABLE (Size);
Size += POOL_OVERHEAD;
Index = SIZE_TO_LIST(Size);