diff options
author | delphij <delphij@FreeBSD.org> | 2006-06-14 03:14:26 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2006-06-14 03:14:26 +0000 |
commit | 9cbae6be494f0ef79e4125b998bf086dbd40f747 (patch) | |
tree | 995075593bc34fc287170c896ebd040dfb625e29 /sys/kern/kern_clock.c | |
parent | d10c9e40f0a947737a6ef2b59d1fcb1f4544f03c (diff) | |
download | FreeBSD-src-9cbae6be494f0ef79e4125b998bf086dbd40f747.zip FreeBSD-src-9cbae6be494f0ef79e4125b998bf086dbd40f747.tar.gz |
Unexpand an instance of TAILQ_EMPTY()
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r-- | sys/kern/kern_clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 182e129..ea1a6f1 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -257,7 +257,7 @@ hardclock(int usermode, uintfptr_t pc) */ mtx_lock_spin_flags(&callout_lock, MTX_QUIET); ticks++; - if (TAILQ_FIRST(&callwheel[ticks & callwheelmask]) != NULL) { + if (!TAILQ_EMPTY(&callwheel[ticks & callwheelmask])) { need_softclock = 1; } else if (softticks + 1 == ticks) ++softticks; |