diff options
Diffstat (limited to 'src/soc/amd/common/pi/heapmanager.c')
-rw-r--r-- | src/soc/amd/common/pi/heapmanager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/amd/common/pi/heapmanager.c b/src/soc/amd/common/pi/heapmanager.c index ab923b9de8..154f04d825 100644 --- a/src/soc/amd/common/pi/heapmanager.c +++ b/src/soc/amd/common/pi/heapmanager.c @@ -259,7 +259,7 @@ AGESA_STATUS agesa_AllocateBuffer(uint32_t Func, uintptr_t Data, BestFitNodePtr = (BIOS_BUFFER_NODE *)(BiosHeapBaseAddr + BestFitNodeOffset); - BestFitPrevNodePtr = (BIOS_BUFFER_NODE *) (BiosHeapBaseAddr + + BestFitPrevNodePtr = (BIOS_BUFFER_NODE *)(BiosHeapBaseAddr + BestFitPrevNodeOffset); /* @@ -268,7 +268,7 @@ AGESA_STATUS agesa_AllocateBuffer(uint32_t Func, uintptr_t Data, */ if (BestFitNodePtr->BufferSize > MinimumSize) { NextFreeOffset = BestFitNodeOffset + MinimumSize; - NextFreePtr = (BIOS_BUFFER_NODE *) (BiosHeapBaseAddr + + NextFreePtr = (BIOS_BUFFER_NODE *)(BiosHeapBaseAddr + NextFreeOffset); NextFreePtr->BufferSize = BestFitNodeSize - MinimumSize; |