git: b74fdaaf1cde - main - geom_multipath: plug set-but-not-used vars

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Thu, 25 Nov 2021 11:32:26 UTC
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=b74fdaaf1cde6002b399ecfa99790e9368c8fc52

commit b74fdaaf1cde6002b399ecfa99790e9368c8fc52
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-11-25 11:31:50 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-11-25 11:31:50 +0000

    geom_multipath: plug set-but-not-used vars
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/geom/multipath/g_multipath.c | 5 +----
 1 file changed, 1 insertion(+), 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) {