Date: Mon, 25 Jan 2010 16:55:30 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r202974 - head/sys/geom/vinum Message-ID: <201001251655.o0PGtUmj022135@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001251655.o0PGtUmj022135>