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:
parent
ca1154d85a
commit
bb0c6dbf62
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue