From bb0c6dbf621dd00bd42b85f90c0f8ee46a43f67e Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Fri, 17 Jul 2020 15:23:41 -0700 Subject: [PATCH] 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 --- lib/libc/newlib/libc-hooks.c | 4 ---- 1 file changed, 4 deletions(-) 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;