Author: jhibbits Date: Tue Apr 4 00:46:48 2017 New Revision: 316479 URL: https://svnweb.freebsd.org/changeset/base/316479
Log: Fix set-but-not-used warnings Submitted by: Sebastian Huber <sebastian_DOT_huber_AT_embedded-brains_DOT_de> Modified: head/sys/dev/tsec/if_tsec.c Modified: head/sys/dev/tsec/if_tsec.c ============================================================================== --- head/sys/dev/tsec/if_tsec.c Tue Apr 4 00:43:09 2017 (r316478) +++ head/sys/dev/tsec/if_tsec.c Tue Apr 4 00:46:48 2017 (r316479) @@ -370,7 +370,7 @@ tsec_mii_wait(struct tsec_softc *sc, uin timeout = TSEC_READ_RETRY; while ((TSEC_PHY_READ(sc, TSEC_REG_MIIMIND) & flags) && --timeout) - DELAY(TSEC_READ_DELAY); + DELAY(TSEC_READ_DELAY); return (timeout == 0); } @@ -927,11 +927,8 @@ tsec_ioctl(struct ifnet *ifp, u_long com { struct tsec_softc *sc = ifp->if_softc; struct ifreq *ifr = (struct ifreq *)data; - device_t dev; int mask, error = 0; - dev = sc->dev; - switch (command) { case SIOCSIFMTU: TSEC_GLOBAL_LOCK(sc); @@ -1290,7 +1287,6 @@ tsec_receive_intr_locked(struct tsec_sof struct ifnet *ifp; struct rx_data_type *rx_data; struct mbuf *m; - device_t dev; uint32_t i; int c, rx_npkts; uint16_t flags; @@ -1299,7 +1295,6 @@ tsec_receive_intr_locked(struct tsec_sof ifp = sc->tsec_ifp; rx_data = sc->rx_data; - dev = sc->dev; rx_npkts = 0; bus_dmamap_sync(sc->tsec_rx_dtag, sc->tsec_rx_dmap, _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"