Fix unused variable warning in if_lagg.c
With clang 15, the following -Werror warning is produced: sys/net/if_lagg.c:2413:6: error: variable 'active_ports' set but not used [-Werror,-Wunused-but-set-variable] int active_ports = 0; ^ The 'active_ports' variable appears to have been a debugging aid that has never been used for anything (ref https://reviews.freebsd.org/D549), so remove it. MFC after: 3 days
This commit is contained in:
parent
38a9b8a00c
commit
fa267a329f
@ -2410,7 +2410,6 @@ lagg_rr_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m)
|
||||
static int
|
||||
lagg_bcast_start(struct lagg_softc *sc, struct mbuf *m)
|
||||
{
|
||||
int active_ports = 0;
|
||||
int errors = 0;
|
||||
int ret;
|
||||
struct lagg_port *lp, *last = NULL;
|
||||
@ -2421,8 +2420,6 @@ lagg_bcast_start(struct lagg_softc *sc, struct mbuf *m)
|
||||
if (!LAGG_PORTACTIVE(lp))
|
||||
continue;
|
||||
|
||||
active_ports++;
|
||||
|
||||
if (last != NULL) {
|
||||
m0 = m_copym(m, 0, M_COPYALL, M_NOWAIT);
|
||||
if (m0 == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user