From aebc61a22fd0290b0a5c49629fb9b20ad77270fc Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 16 Dec 2006 21:17:27 +0000 Subject: Don't intermix assignments and variable declarations in prev. commit --- sys/kern/subr_sleepqueue.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sys/kern/subr_sleepqueue.c') diff --git a/sys/kern/subr_sleepqueue.c b/sys/kern/subr_sleepqueue.c index 4479d13..047cd2e 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")); -- cgit v1.1