diff options
author | peter <peter@FreeBSD.org> | 2002-02-20 21:25:44 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-02-20 21:25:44 +0000 |
commit | 1906d1360c5ab22e4d5655cfb17697a675c021b5 (patch) | |
tree | 87e389dba1d01cab4bc0ce5951a633f746289704 /sys | |
parent | 7b6d78ef23b57da21a82b7f0c48134c638fc57e6 (diff) | |
download | FreeBSD-src-1906d1360c5ab22e4d5655cfb17697a675c021b5.zip FreeBSD-src-1906d1360c5ab22e4d5655cfb17697a675c021b5.tar.gz |
Tidy up some unused variables
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_mutex.c | 5 | ||||
-rw-r--r-- | sys/kern/subr_turnstile.c | 5 |
2 files changed, 0 insertions, 10 deletions
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) diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c index 6a5e86a..76d384d 100644 --- a/sys/kern/subr_turnstile.c +++ b/sys/kern/subr_turnstile.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) |