aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_sleepqueue.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2006-12-16 21:17:27 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2006-12-16 21:17:27 +0000
commit6d87718991506526f865c6dd8287bf46a5b90809 (patch)
tree4948efab2fdeec3f381a6cf99c99526d500edff0 /sys/kern/subr_sleepqueue.c
parentfc6d254f9e152b53713960781609c196ebb7f77f (diff)
downloadsrc-6d87718991506526f865c6dd8287bf46a5b90809.tar.gz
src-6d87718991506526f865c6dd8287bf46a5b90809.zip
Don't intermix assignments and variable declarations in prev. commit
Notes
Notes: svn path=/head/; revision=165291
Diffstat (limited to 'sys/kern/subr_sleepqueue.c')
-rw-r--r--sys/kern/subr_sleepqueue.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/kern/subr_sleepqueue.c b/sys/kern/subr_sleepqueue.c
index 4479d131906b..047cd2eeb17d 100644
--- a/sys/kern/subr_sleepqueue.c
+++ b/sys/kern/subr_sleepqueue.c
@@ -297,11 +297,13 @@ sleepq_add(void *wchan, struct lock_object *lock, const char *wmesg, int flags,
if (sq == NULL) {
sq = td->td_sleepqueue;
#ifdef INVARIANTS
- int i;
- for (i = 0; i < NR_SLEEPQS; i++)
- KASSERT(TAILQ_EMPTY(&sq->sq_blocked[i]),
+ {
+ int i;
+
+ for (i = 0; i < NR_SLEEPQS; i++)
+ KASSERT(TAILQ_EMPTY(&sq->sq_blocked[i]),
("thread's sleep queue %d is not empty", i));
-
+ }
KASSERT(LIST_EMPTY(&sq->sq_free),
("thread's sleep queue has a non-empty free list"));
KASSERT(sq->sq_wchan == NULL, ("stale sq_wchan pointer"));