diff options
author | ed <ed@FreeBSD.org> | 2009-02-26 13:00:13 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-02-26 13:00:13 +0000 |
commit | 4f11d3e937fa9bb582c513ec0b606d12def78cd6 (patch) | |
tree | 1bcb74e3ecd0ddb561ade138ca85c0c32d5dfb9b /sys | |
parent | 8e0e1b6f4d09a653160808354820d60750feb3c9 (diff) | |
download | FreeBSD-src-4f11d3e937fa9bb582c513ec0b606d12def78cd6.zip FreeBSD-src-4f11d3e937fa9bb582c513ec0b606d12def78cd6.tar.gz |
Remove unused variables `p' and unneeded assignments of `rval'.
Found by: LLVM's scan-build
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_condvar.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/kern/kern_condvar.c b/sys/kern/kern_condvar.c index dbc9833..e6a0b7a 100644 --- a/sys/kern/kern_condvar.c +++ b/sys/kern/kern_condvar.c @@ -214,11 +214,9 @@ _cv_wait_sig(struct cv *cvp, struct lock_object *lock) WITNESS_SAVE_DECL(lock_witness); struct lock_class *class; struct thread *td; - struct proc *p; int lock_state, rval; td = curthread; - p = td->td_proc; lock_state = 0; #ifdef KTRACE if (KTRPOINT(td, KTR_CSW)) @@ -285,7 +283,6 @@ _cv_timedwait(struct cv *cvp, struct lock_object *lock, int timo) int lock_state, rval; td = curthread; - rval = 0; lock_state = 0; #ifdef KTRACE if (KTRPOINT(td, KTR_CSW)) @@ -350,12 +347,9 @@ _cv_timedwait_sig(struct cv *cvp, struct lock_object *lock, int timo) WITNESS_SAVE_DECL(lock_witness); struct lock_class *class; struct thread *td; - struct proc *p; int lock_state, rval; td = curthread; - p = td->td_proc; - rval = 0; lock_state = 0; #ifdef KTRACE if (KTRPOINT(td, KTR_CSW)) |