Skip to content

Commit db5d9f7

Browse files
committed
LWIP: Corrected pointer type when allocating stack memory to a new thread
1 parent 86c6d63 commit db5d9f7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

libraries/net/lwip/lwip-sys/arch/sys_arch.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,7 @@ sys_thread_t sys_thread_new(const char *pcName,
427427
t->def.tpriority = (osPriority)priority;
428428
t->def.stacksize = stacksize;
429429
#ifndef __MBED_CMSIS_RTOS_CA9
430-
#if defined (__ICCARM__)
431430
t->def.stack_pointer = (uint32_t*)malloc(stacksize);
432-
#else
433-
t->def.stack_pointer = (unsigned char*)malloc(stacksize);
434-
#endif
435431
if (t->def.stack_pointer == NULL) {
436432
error("Error allocating the stack memory");
437433
}

0 commit comments

Comments
 (0)