Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Nov 2021 22:06:39 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3142d4f622d2 - main - lagg: fix unused-but-set-variable
Message-ID:  <202111192206.1AJM6dDG037541@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp:

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

commit 3142d4f622d2f95da5c7c52f60ce840411a07b0a
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2021-11-19 16:22:48 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2021-11-19 21:01:27 +0000

    lagg: fix unused-but-set-variable
    
    MFC after:      1 week
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/net/if_lagg.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c
index 87227136e667..e9e66e54e6ce 100644
--- a/sys/net/if_lagg.c
+++ b/sys/net/if_lagg.c
@@ -1834,13 +1834,10 @@ lagg_snd_tag_alloc(struct ifnet *ifp,
 	struct epoch_tracker et;
 	const struct if_snd_tag_sw *sw;
 	struct lagg_snd_tag *lst;
-	struct lagg_softc *sc;
 	struct lagg_port *lp;
 	struct ifnet *lp_ifp;
 	int error;
 
-	sc = ifp->if_softc;
-
 	switch (params->hdr.type) {
 #ifdef RATELIMIT
 	case IF_SND_TAG_TYPE_UNLIMITED:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111192206.1AJM6dDG037541>