diff --git a/lib/libc_r/uthread/uthread_kern.c b/lib/libc_r/uthread/uthread_kern.c index 67844e143e4f..4d92385837fd 100644 --- a/lib/libc_r/uthread/uthread_kern.c +++ b/lib/libc_r/uthread/uthread_kern.c @@ -323,7 +323,7 @@ _thread_kern_scheduler(void) * Avoid polling file descriptors if there are none * waiting: */ - if (TAILQ_EMPTY(&_workq) == 0) { + if (TAILQ_EMPTY(&_workq) != 0) { } /* * Poll file descriptors only if a new scheduling signal diff --git a/lib/libkse/thread/thr_kern.c b/lib/libkse/thread/thr_kern.c index 67844e143e4f..4d92385837fd 100644 --- a/lib/libkse/thread/thr_kern.c +++ b/lib/libkse/thread/thr_kern.c @@ -323,7 +323,7 @@ _thread_kern_scheduler(void) * Avoid polling file descriptors if there are none * waiting: */ - if (TAILQ_EMPTY(&_workq) == 0) { + if (TAILQ_EMPTY(&_workq) != 0) { } /* * Poll file descriptors only if a new scheduling signal diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c index 67844e143e4f..4d92385837fd 100644 --- a/lib/libpthread/thread/thr_kern.c +++ b/lib/libpthread/thread/thr_kern.c @@ -323,7 +323,7 @@ _thread_kern_scheduler(void) * Avoid polling file descriptors if there are none * waiting: */ - if (TAILQ_EMPTY(&_workq) == 0) { + if (TAILQ_EMPTY(&_workq) != 0) { } /* * Poll file descriptors only if a new scheduling signal