]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
if_dwc: Plug set but not used variable
authorEmmanuel Vadot <manu@FreeBSD.org>
Mon, 21 Feb 2022 10:03:25 +0000 (11:03 +0100)
committerEmmanuel Vadot <manu@FreeBSD.org>
Mon, 21 Feb 2022 10:08:18 +0000 (11:08 +0100)
Sponsored by: Beckhoff Automation GmbH & Co. KG

sys/dev/dwc/if_dwc.c

index 429e250f48e82f6032551231553716fb68d66b99..d1a536639304452ee3053a8795aba8892af4c498 100644 (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;