Date: Tue, 25 Nov 2008 19:25:54 +0000 (UTC) From: Ganbold Tsagaankhuu <ganbold@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r185310 - in head/sys/cddl/dev: cyclic dtrace/i386 Message-ID: <200811251925.mAPJPsY6032563@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811251925.mAPJPsY6032563>