lock unused when INVARIANTS not defined, so don't declare it then

This commit is contained in:
Warner Losh 2006-01-28 00:49:31 +00:00
parent 3f08bd8bce
commit 6229621e2c

View File

@ -853,7 +853,9 @@ DB_SHOW_COMMAND(sleepq, db_show_sleepqueue)
{
struct sleepqueue_chain *sc;
struct sleepqueue *sq;
#ifdef INVARIANTS
struct lock_object *lock;
#endif
struct thread *td;
void *wchan;
int i;