aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/gizmosphere/gizmo2/PlatformGnbPcie.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/gizmosphere/gizmo2/PlatformGnbPcie.c')
-rw-r--r--src/mainboard/gizmosphere/gizmo2/PlatformGnbPcie.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mainboard/gizmosphere/gizmo2/PlatformGnbPcie.c b/src/mainboard/gizmosphere/gizmo2/PlatformGnbPcie.c
index 2af30e892e..d48aa9fb87 100644
--- a/src/mainboard/gizmosphere/gizmo2/PlatformGnbPcie.c
+++ b/src/mainboard/gizmosphere/gizmo2/PlatformGnbPcie.c
@@ -137,11 +137,7 @@ OemCustomizeInitEarly (
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
- if ( Status!= AGESA_SUCCESS) {
- /* Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR */
- ASSERT(FALSE);
- return;
- }
+ ASSERT(Status == AGESA_SUCCESS);
PcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
LibAmdMemCopy (PcieComplexListPtr, &PcieComplex, sizeof(PcieComplex), &InitEarly->StdHeader);