Date: Thu, 26 Feb 2009 13:00:13 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r189071 - head/sys/kern Message-ID: <200902261300.n1QD0DgH028358@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902261300.n1QD0DgH028358>