libc: newlib: remove impossible ifdef

This whole code block is ifdef'ed around
CONFIG_NEWLIB_LIBC_ALIGNED_HEAP_SIZE being NOT defined,
remove as this can never be true.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-07-17 15:23:41 -07:00 committed by Carles Cufí
commit bb0c6dbf62

View file

@ -76,11 +76,7 @@ static int malloc_prepare(struct device *unused)
{ {
ARG_UNUSED(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; z_malloc_partition.start = HEAP_BASE;
#endif
z_malloc_partition.size = MAX_HEAP_SIZE; z_malloc_partition.size = MAX_HEAP_SIZE;
z_malloc_partition.attr = K_MEM_PARTITION_P_RW_U_RW; z_malloc_partition.attr = K_MEM_PARTITION_P_RW_U_RW;
return 0; return 0;