From owner-svn-src-all@FreeBSD.ORG Tue Nov 25 19:25:54 2008 Return-Path: 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 C2A3B1065675; Tue, 25 Nov 2008 19:25:54 +0000 (UTC) (envelope-from ganbold@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B13C48FC0C; Tue, 25 Nov 2008 19:25:54 +0000 (UTC) (envelope-from ganbold@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 mAPJPskQ032565; Tue, 25 Nov 2008 19:25:54 GMT (envelope-from ganbold@svn.freebsd.org) Received: (from ganbold@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mAPJPsY6032563; Tue, 25 Nov 2008 19:25:54 GMT (envelope-from ganbold@svn.freebsd.org) Message-Id: <200811251925.mAPJPsY6032563@svn.freebsd.org> From: Ganbold Tsagaankhuu Date: Tue, 25 Nov 2008 19:25:54 +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 Cc: Subject: svn commit: r185310 - in head/sys/cddl/dev: cyclic dtrace/i386 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2008 19:25:54 -0000 Author: ganbold (doc committer) Date: Tue Nov 25 19:25:54 2008 New Revision: 185310 URL: http://svn.freebsd.org/changeset/base/185310 Log: Remove unused variable. Found with: Coverity Prevent(tm) CID: 3669,3671 Approved by: jb Modified: head/sys/cddl/dev/cyclic/cyclic.c head/sys/cddl/dev/dtrace/i386/dtrace_subr.c Modified: head/sys/cddl/dev/cyclic/cyclic.c ============================================================================== --- head/sys/cddl/dev/cyclic/cyclic.c Tue Nov 25 19:13:58 2008 (r185309) +++ head/sys/cddl/dev/cyclic/cyclic.c Tue Nov 25 19:25:54 2008 (r185310) @@ -1341,12 +1341,11 @@ cyclic_mp_init(void) static void cyclic_uninit(void) { - struct pcpu *pc; cpu_t *c; int id; for (id = 0; id <= mp_maxid; id++) { - if ((pc = pcpu_find(id)) == NULL) + if (pcpu_find(id) == NULL) continue; c = &solaris_cpu[id]; Modified: head/sys/cddl/dev/dtrace/i386/dtrace_subr.c ============================================================================== --- head/sys/cddl/dev/dtrace/i386/dtrace_subr.c Tue Nov 25 19:13:58 2008 (r185309) +++ head/sys/cddl/dev/dtrace/i386/dtrace_subr.c Tue Nov 25 19:25:54 2008 (r185310) @@ -403,7 +403,6 @@ dtrace_gethrtime_init(void *arg) { cpumask_t map; int i; - struct pcpu *cp; /* The current CPU is the reference one. */ tsc_skew[curcpu] = 0; @@ -412,7 +411,7 @@ dtrace_gethrtime_init(void *arg) if (i == curcpu) continue; - if ((cp = pcpu_find(i)) == NULL) + if (pcpu_find(i) == NULL) continue; map = 0;