diff --git a/sys/dev/dwc/if_dwc.c b/sys/dev/dwc/if_dwc.c index 429e250f48e8..d1a536639304 100644 --- a/sys/dev/dwc/if_dwc.c +++ b/sys/dev/dwc/if_dwc.c @@ -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;