diff --git a/lib/libc/newlib/libc-hooks.c b/lib/libc/newlib/libc-hooks.c index 0b73dc3f88c..2bc2ea2599b 100644 --- a/lib/libc/newlib/libc-hooks.c +++ b/lib/libc/newlib/libc-hooks.c @@ -76,11 +76,7 @@ static int malloc_prepare(struct device *unused) { ARG_UNUSED(unused); -#if CONFIG_NEWLIB_LIBC_ALIGNED_HEAP_SIZE - z_malloc_partition.start = (uint32_t)heap_base; -#else z_malloc_partition.start = HEAP_BASE; -#endif z_malloc_partition.size = MAX_HEAP_SIZE; z_malloc_partition.attr = K_MEM_PARTITION_P_RW_U_RW; return 0;