From owner-svn-src-all@FreeBSD.ORG Mon Jan 25 16:55:30 2010 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 9DA78106566B; Mon, 25 Jan 2010 16:55:30 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8D1E38FC19; Mon, 25 Jan 2010 16:55:30 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o0PGtUAB022138; Mon, 25 Jan 2010 16:55:30 GMT (envelope-from trasz@svn.freebsd.org) Received: (from trasz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o0PGtUmj022135; Mon, 25 Jan 2010 16:55:30 GMT (envelope-from trasz@svn.freebsd.org) Message-Id: <201001251655.o0PGtUmj022135@svn.freebsd.org> From: Edward Tomasz Napierala Date: Mon, 25 Jan 2010 16:55:30 +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: r202974 - head/sys/geom/vinum 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: Mon, 25 Jan 2010 16:55:30 -0000 Author: trasz Date: Mon Jan 25 16:55:30 2010 New Revision: 202974 URL: http://svn.freebsd.org/changeset/base/202974 Log: Remove some pointless variable assignments. Found with: clang Modified: head/sys/geom/vinum/geom_vinum.c head/sys/geom/vinum/geom_vinum_create.c Modified: head/sys/geom/vinum/geom_vinum.c ============================================================================== --- head/sys/geom/vinum/geom_vinum.c Mon Jan 25 16:44:18 2010 (r202973) +++ head/sys/geom/vinum/geom_vinum.c Mon Jan 25 16:55:30 2010 (r202974) @@ -130,7 +130,6 @@ gv_access(struct g_provider *pp, int dr, struct gv_drive *d, *d2; int error; - error = ENXIO; gp = pp->geom; sc = gp->softc; /* Modified: head/sys/geom/vinum/geom_vinum_create.c ============================================================================== --- head/sys/geom/vinum/geom_vinum_create.c Mon Jan 25 16:44:18 2010 (r202973) +++ head/sys/geom/vinum/geom_vinum_create.c Mon Jan 25 16:55:30 2010 (r202974) @@ -314,7 +314,7 @@ gv_concat(struct g_geom *gp, struct gctl struct gv_plex *p; struct gv_softc *sc; char *drive, buf[30], *vol; - int *drives, *flags, dcount; + int *drives, dcount; sc = gp->softc; dcount = 0; @@ -324,7 +324,6 @@ gv_concat(struct g_geom *gp, struct gctl return; } - flags = gctl_get_paraml(req, "flags", sizeof(*flags)); drives = gctl_get_paraml(req, "drives", sizeof(*drives)); if (drives == NULL) { @@ -475,7 +474,6 @@ gv_raid5(struct g_geom *gp, struct gctl_ char *vol, *drive, buf[30]; off_t *stripesize; - dcount = 0; sc = gp->softc; vol = gctl_get_param(req, "name", NULL);