From owner-svn-src-head@FreeBSD.ORG Thu Feb 26 19:16:40 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 722F61065698; Thu, 26 Feb 2009 19:16:40 +0000 (UTC) (envelope-from owner-svn-src-all@freebsd.org) Received: from forwards5.yandex.ru (forwards5.yandex.ru [77.88.61.37]) by mx1.freebsd.org (Postfix) with ESMTP id BCD9E8FC37; Thu, 26 Feb 2009 19:16:39 +0000 (UTC) (envelope-from owner-svn-src-all@freebsd.org) Received: from mxfront13.yandex.ru (mxfront13.yandex.ru [77.88.47.149]) by forwards5.yandex.ru (Yandex) with ESMTP id 409D7B0C3E3; Thu, 26 Feb 2009 22:12:04 +0300 (MSK) Received: from mx2.freebsd.org ([69.147.83.53]:57343 "EHLO mx2.freebsd.org" smtp-auth: TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S2999443AbZBZNAe for (+ 2 others); Thu, 26 Feb 2009 16:00:34 +0300 X-Yandex-TimeMark: 1235653234 X-Yandex-Spam: 2 X-Yandex-Front: mxfront13 Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id E4FD6150C3F; Thu, 26 Feb 2009 13:00:28 +0000 (UTC) (envelope-from owner-svn-src-all@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 1EE1C10656E8; Thu, 26 Feb 2009 13:00:28 +0000 (UTC) (envelope-from owner-svn-src-all@freebsd.org) Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B0FA106566B; Thu, 26 Feb 2009 13:00:14 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EE7A68FC0A; Thu, 26 Feb 2009 13:00:13 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n1QD0DI3028359; Thu, 26 Feb 2009 13:00:13 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n1QD0DgH028358; Thu, 26 Feb 2009 13:00:13 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <200902261300.n1QD0DgH028358@svn.freebsd.org> From: Ed Schouten Date: Thu, 26 Feb 2009 13:00:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-svn-src-all@freebsd.org Errors-To: owner-svn-src-all@freebsd.org Cc: Subject: svn commit: r189071 - head/sys/kern X-BeenThere: svn-src-head@freebsd.org List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2009 19:16:42 -0000 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"