diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index e509fbc01880..ffdeec292daa 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -1346,8 +1346,8 @@ ithread_loop(void *arg) * set again, so we have to check it again. */ thread_lock(td); - if ((atomic_load_acq_int(&ithd->it_need) == 0) && - !(ithd->it_flags & (IT_DEAD | IT_WAIT))) { + if (atomic_load_acq_int(&ithd->it_need) == 0 && + (ithd->it_flags & (IT_DEAD | IT_WAIT)) == 0) { TD_SET_IWAIT(td); ie->ie_count = 0; mi_switch(SW_VOL | SWT_IWAIT, NULL); @@ -1529,8 +1529,8 @@ ithread_loop(void *arg) * set again, so we have to check it again. */ thread_lock(td); - if ((atomic_load_acq_int(&ithd->it_need) == 0) && - !(ithd->it_flags & (IT_DEAD | IT_WAIT))) { + if (atomic_load_acq_int(&ithd->it_need) == 0 && + (ithd->it_flags & (IT_DEAD | IT_WAIT)) == 0) { TD_SET_IWAIT(td); ie->ie_count = 0; mi_switch(SW_VOL | SWT_IWAIT, NULL);