diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 6c149137729..44c7682e068 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -1357,8 +1357,6 @@ sched_switch(struct thread *td, struct thread *newtd, int flags) } else if ((ke->ke_flags & KEF_ASSIGNED) == 0) { /* We are ending our run so make our slot available again */ SLOT_RELEASE(td->td_ksegrp); - if (ke->ke_runq == NULL) - panic("Thread not on runq."); kseq_load_rem(ksq, ke); if (TD_IS_RUNNING(td)) { /*