From nobody Thu Nov 25 11:32:26 2021 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5E8B218AACD3; Thu, 25 Nov 2021 11:32:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J0G226j2jz3PZJ; Thu, 25 Nov 2021 11:32:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AEAA11C857; Thu, 25 Nov 2021 11:32:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1APBWQPf055918; Thu, 25 Nov 2021 11:32:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1APBWQAL055917; Thu, 25 Nov 2021 11:32:26 GMT (envelope-from git) Date: Thu, 25 Nov 2021 11:32:26 GMT Message-Id: <202111251132.1APBWQAL055917@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: b74fdaaf1cde - main - geom_multipath: plug set-but-not-used vars List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b74fdaaf1cde6002b399ecfa99790e9368c8fc52 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637839947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6jahGy1P6zBjWCX+3fi2WvtUn7MOKBuC4QsNvZSxdOM=; b=TDWZNNs4in/uWLlk9ZIAsonbcrbH6Woj+hCTAQx+YE5/4BBSHLCUBbiD1ZwonANEY25wNx /hd1oDweOI1L5irK5hNoY+ELY750wJD0zT4e9CIrpbq6ABt28lSETKwcgmYcgD4ih8Ocu4 EkbuXt5+Z8rbzCfDy1P3/4K9QYSxUofLXt2YUZiTEDO85AkSkatBuigZRCe2O3IXrL01B8 Le1g+irStPcFOEGKJgNih1KRL0eeU/LTNnUUVa/RV40rQSyjy0EuUlyOz1tZBdbyag3R6E cCGpDx8xZystkSacP4/TTES2uy0gRyTrjo7M5e53a0Ay0RvrDj2wJpPwC14zCw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637839947; a=rsa-sha256; cv=none; b=SWKE0QkS1NBwuxUwI8a6ZOivFJF3gUsMZ8WbntmKumH/VQhDzv5jsceQM2K5zmCUhqSRJk Hj1FeH70YUWCXbZVHnyWOgOTVfEqyLc9fNPIB0IhxJSf0LN8fiPcDgJ+VYjKVybKzLWKh1 qLs+B4ZDUyiXxA/I20MjJk7CnfAVvhUP8Nf1o5DHnDZ9rg0EFAg3kPresxvAdwwnxOTVFO F6Nn+sP4b3mVBQT09d9LhydRB52lX2r4HVqch0RcnMg0RhwWlARA6RZ4ItRmSjwf2LwZt9 dk2CzAQg7DLmzqYuI7Q3ZQOhTsPSxDWafrVVz2ItGQaPZ5H/+6lZ1w4mbStNFA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=b74fdaaf1cde6002b399ecfa99790e9368c8fc52 commit b74fdaaf1cde6002b399ecfa99790e9368c8fc52 Author: Mateusz Guzik AuthorDate: 2021-11-25 11:31:50 +0000 Commit: Mateusz Guzik 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) {