if_dwc: Plug set but not used variable

Sponsored by:	Beckhoff Automation GmbH & Co. KG
This commit is contained in:
Emmanuel Vadot 2022-02-21 11:03:25 +01:00
parent 8c70a27c4d
commit 79778f8692

View File

@ -1288,13 +1288,11 @@ dwc_txfinish_locked(struct dwc_softc *sc)
static void
dwc_rxfinish_locked(struct dwc_softc *sc)
{
struct ifnet *ifp;
struct mbuf *m;
int error, idx;
struct dwc_hwdesc *desc;
DWC_ASSERT_LOCKED(sc);
ifp = sc->ifp;
for (;;) {
idx = sc->rx_idx;
desc = sc->rxdesc_ring + idx;