[PATCH 2/2] if_tsec: Fix set but not used warnings

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Mar 6 06:50:06 UTC 2017


---
 sys/dev/tsec/if_tsec.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sys/dev/tsec/if_tsec.c b/sys/dev/tsec/if_tsec.c
index 927d339..f544bd1 100644
--- a/sys/dev/tsec/if_tsec.c
+++ b/sys/dev/tsec/if_tsec.c
@@ -926,11 +926,8 @@ tsec_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
 {
 	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);
@@ -1289,7 +1286,6 @@ tsec_receive_intr_locked(struct tsec_softc *sc, int count)
 	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;
@@ -1298,7 +1294,6 @@ tsec_receive_intr_locked(struct tsec_softc *sc, int count)
 
 	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,
-- 
1.8.4.5



More information about the freebsd-net mailing list