mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00:00
Tidy up some unused variables
This commit is contained in:
parent
5bcd0580d7
commit
114730b0a8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90997
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user