Remove unused variables p' and unneeded assignments of rval'.

Found by:	LLVM's scan-build
This commit is contained in:
Ed Schouten 2009-02-26 13:00:13 +00:00
parent fb2a76ccf8
commit 5225593633
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189071

View File

@ -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))