diff --git a/core/thread.c b/core/thread.c index cd97c38d60..cb828b6df4 100644 --- a/core/thread.c +++ b/core/thread.c @@ -178,9 +178,6 @@ uintptr_t measure_stack_free_internal(const char *stack, size_t size) uintptr_t *stackp = (uintptr_t *)(uintptr_t)stack; uintptr_t end = (uintptr_t)stack + size; - /* better be safe than sorry: align end of stack just in case */ - end &= (sizeof(uintptr_t) - 1); - /* assume that the stack grows "downwards" */ while (((uintptr_t)stackp < end) && (*stackp == (uintptr_t)stackp)) { stackp++;