From 1906d1360c5ab22e4d5655cfb17697a675c021b5 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 20 Feb 2002 21:25:44 +0000 Subject: Tidy up some unused variables --- sys/kern/kern_mutex.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'sys/kern/kern_mutex.c') diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index 6a5e86a..76d384d 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -87,7 +87,6 @@ static void propagate_priority(struct thread *); static void propagate_priority(struct thread *td) { - struct ksegrp *kg = td->td_ksegrp; int pri = td->td_priority; struct mtx *m = td->td_blocked; @@ -106,7 +105,6 @@ propagate_priority(struct thread *td) MPASS(m->mtx_lock == MTX_CONTESTED); return; } - kg = td->td_ksegrp; MPASS(td->td_proc->p_magic == P_MAGIC); KASSERT(td->td_proc->p_stat != SSLEEP, ("sleeping thread owns a mutex")); @@ -287,7 +285,6 @@ void _mtx_lock_sleep(struct mtx *m, int opts, const char *file, int line) { struct thread *td = curthread; - struct ksegrp *kg = td->td_ksegrp; if ((m->mtx_lock & MTX_FLAGMASK) == (uintptr_t)td) { m->mtx_recurse++; @@ -464,10 +461,8 @@ _mtx_unlock_sleep(struct mtx *m, int opts, const char *file, int line) struct thread *td, *td1; struct mtx *m1; int pri; - struct ksegrp *kg; td = curthread; - kg = td->td_ksegrp; if (mtx_recursed(m)) { if (--(m->mtx_recurse) == 0) -- cgit v1.1