svn commit: r189071 - head/sys/kern

Ed Schouten ed at FreeBSD.org
Thu Feb 26 11:35:54 PST 2009


Author: ed
Date: Thu Feb 26 13:00:13 2009
New Revision: 189071
URL: http://svn.freebsd.org/changeset/base/189071

Log:
  Remove unused variables `p' and unneeded assignments of `rval'.
  
  Found by:	LLVM's scan-build

Modified:
  head/sys/kern/kern_condvar.c

Modified: head/sys/kern/kern_condvar.c
==============================================================================
--- head/sys/kern/kern_condvar.c	Thu Feb 26 12:33:22 2009	(r189070)
+++ head/sys/kern/kern_condvar.c	Thu Feb 26 13:00:13 2009	(r189071)
@@ -214,11 +214,9 @@ _cv_wait_sig(struct cv *cvp, struct 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 loc
 	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
 	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))
_______________________________________________
svn-src-all at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"


More information about the svn-src-head mailing list