Skip to content

Commit dcdebb6

Browse files
committed
kernel: dynamic: remove unnecessary size assignment
Previously, the kernel stack size was adjusted for no apparent reason. Signed-off-by: Christopher Friedt <[email protected]>
1 parent 47102de commit dcdebb6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/dynamic.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ static k_thread_stack_t *z_thread_stack_alloc_pool(size_t size)
4141
size_t offset;
4242
k_thread_stack_t *stack;
4343

44-
size = Z_KERNEL_STACK_SIZE_ADJUST(size);
45-
4644
if (size > CONFIG_DYNAMIC_THREAD_STACK_SIZE) {
4745
LOG_DBG("stack size %zu is > pool stack size %d", size,
4846
CONFIG_DYNAMIC_THREAD_STACK_SIZE);

0 commit comments

Comments
 (0)