diff --git a/os/kernel/src/chthreads.c b/os/kernel/src/chthreads.c index 19accdb55..46039561b 100644 --- a/os/kernel/src/chthreads.c +++ b/os/kernel/src/chthreads.c @@ -80,9 +80,6 @@ Thread *_thread_init(Thread *tp, tprio_t prio) { #if CH_USE_EVENTS tp->p_epending = 0; #endif -#if CH_USE_NESTED_LOCKS - tp->p_locks = 0; -#endif #if CH_DBG_THREADS_PROFILING tp->p_time = 0; #endif