diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index b5983eb4beb7..949095a4d34e 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -719,11 +719,8 @@ thread_reap_callout_cb(void *arg __unused) void thread_reap_barrier(void) { - struct thread *td; struct task *t; - td = curthread; - /* * First do context switches to each CPU to ensure that all * PCPU pc_deadthreads are moved to zombie list.