summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2010-01-25 16:55:30 +0000
committertrasz <trasz@FreeBSD.org>2010-01-25 16:55:30 +0000
commitca36390aa179f88691392d6e157daedc1caffaed (patch)
tree45ce9219e7c87f432de7b34b41018367f495ea44 /sys/geom
parent99646c7cca53e66b15938ce0fd8008eaf8f66465 (diff)
downloadFreeBSD-src-ca36390aa179f88691392d6e157daedc1caffaed.zip
FreeBSD-src-ca36390aa179f88691392d6e157daedc1caffaed.tar.gz
Remove some pointless variable assignments.
Found with: clang
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/vinum/geom_vinum.c1
-rw-r--r--sys/geom/vinum/geom_vinum_create.c4
2 files changed, 1 insertions, 4 deletions
diff --git a/sys/geom/vinum/geom_vinum.c b/sys/geom/vinum/geom_vinum.c
index 7b730bd..b921a1b 100644
--- a/sys/geom/vinum/geom_vinum.c
+++ b/sys/geom/vinum/geom_vinum.c
@@ -130,7 +130,6 @@ gv_access(struct g_provider *pp, int dr, int dw, int de)
struct gv_drive *d, *d2;
int error;
- error = ENXIO;
gp = pp->geom;
sc = gp->softc;
/*
diff --git a/sys/geom/vinum/geom_vinum_create.c b/sys/geom/vinum/geom_vinum_create.c
index 289710d..1a4a920 100644
--- a/sys/geom/vinum/geom_vinum_create.c
+++ b/sys/geom/vinum/geom_vinum_create.c
@@ -314,7 +314,7 @@ gv_concat(struct g_geom *gp, struct gctl_req *req)
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_req *req)
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_req *req)
char *vol, *drive, buf[30];
off_t *stripesize;
- dcount = 0;
sc = gp->softc;
vol = gctl_get_param(req, "name", NULL);
OpenPOWER on IntegriCloud