git: e052f7269108 - main - alc: plug a set-but-not-unused var in alc_init_locked

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Wed, 24 Nov 2021 16:28:43 UTC
The branch main has been updated by mjg:

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

commit e052f72691088229c34e8f908593319c413b2a10
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-11-24 16:26:57 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-11-24 16:26:57 +0000

    alc: plug a set-but-not-unused var in alc_init_locked
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/dev/alc/if_alc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/dev/alc/if_alc.c b/sys/dev/alc/if_alc.c
index eb906d60bcbe..bedbd20c1f04 100644
--- a/sys/dev/alc/if_alc.c
+++ b/sys/dev/alc/if_alc.c
@@ -3932,7 +3932,6 @@ static void
 alc_init_locked(struct alc_softc *sc)
 {
 	struct ifnet *ifp;
-	struct mii_data *mii;
 	uint8_t eaddr[ETHER_ADDR_LEN];
 	bus_addr_t paddr;
 	uint32_t reg, rxf_hi, rxf_lo;
@@ -3940,7 +3939,6 @@ alc_init_locked(struct alc_softc *sc)
 	ALC_LOCK_ASSERT(sc);
 
 	ifp = sc->alc_ifp;
-	mii = device_get_softc(sc->alc_miibus);
 
 	if ((ifp->if_drv_flags & IFF_DRV_RUNNING) != 0)
 		return;