diff --git a/core/thread.c b/core/thread.c index a93feeb323..18064f1592 100644 --- a/core/thread.c +++ b/core/thread.c @@ -61,9 +61,9 @@ void thread_zombify(void) return; } - unsigned state = irq_disable(); + irq_disable(); sched_set_status((thread_t *)sched_active_thread, STATUS_ZOMBIE); - irq_restore(state); + irq_enable(); thread_yield_higher(); /* this line should never be reached */