aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-11-25 11:31:50 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-11-25 11:31:50 +0000
commitb74fdaaf1cde6002b399ecfa99790e9368c8fc52 (patch)
treea6dd7581e778d2e36a9e15ee813f7f2d371423b4
parentb6f387fdb77216e9a89c77a985aec5f45d39fd90 (diff)
downloadsrc-b74fdaaf1cde6002b399ecfa99790e9368c8fc52.tar.gz
src-b74fdaaf1cde6002b399ecfa99790e9368c8fc52.zip
geom_multipath: plug set-but-not-used vars
Sponsored by: Rubicon Communications, LLC ("Netgate")
-rw-r--r--sys/geom/multipath/g_multipath.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/geom/multipath/g_multipath.c b/sys/geom/multipath/g_multipath.c
index 120fced0a8f1..ee1db72f68f9 100644
--- a/sys/geom/multipath/g_multipath.c
+++ b/sys/geom/multipath/g_multipath.c
@@ -582,7 +582,7 @@ static int
g_multipath_add_disk(struct g_geom *gp, struct g_provider *pp)
{
struct g_multipath_softc *sc;
- struct g_consumer *cp, *nxtcp;
+ struct g_consumer *cp;
int error, acr, acw, ace;
g_topology_assert();
@@ -602,7 +602,6 @@ g_multipath_add_disk(struct g_geom *gp, struct g_provider *pp)
pp->name, gp->name);
return (EEXIST);
}
- nxtcp = LIST_FIRST(&gp->consumer);
cp = g_new_consumer(gp);
cp->flags |= G_CF_DIRECT_SEND | G_CF_DIRECT_RECEIVE;
cp->private = NULL;
@@ -1082,7 +1081,6 @@ g_multipath_ctl_prefer(struct gctl_req *req, struct g_class *mp)
static void
g_multipath_ctl_add(struct gctl_req *req, struct g_class *mp)
{
- struct g_multipath_softc *sc;
struct g_geom *gp;
const char *mpname, *name;
@@ -1096,7 +1094,6 @@ g_multipath_ctl_add(struct gctl_req *req, struct g_class *mp)
gctl_error(req, "Device %s not found", mpname);
return;
}
- sc = gp->softc;
name = gctl_get_asciiparam(req, "arg1");
if (name == NULL) {