Module Name:    src
Committed By:   rin
Date:           Wed Feb  6 08:28:11 UTC 2019

Modified Files:
        src/sys/dev/usb: if_mue.c if_muevar.h

Log Message:
Remove unused.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/usb/if_mue.c
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/usb/if_muevar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/if_mue.c
diff -u src/sys/dev/usb/if_mue.c:1.35 src/sys/dev/usb/if_mue.c:1.36
--- src/sys/dev/usb/if_mue.c:1.35	Wed Feb  6 08:26:30 2019
+++ src/sys/dev/usb/if_mue.c	Wed Feb  6 08:28:11 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_mue.c,v 1.35 2019/02/06 08:26:30 rin Exp $	*/
+/*	$NetBSD: if_mue.c,v 1.36 2019/02/06 08:28:11 rin Exp $	*/
 /*	$OpenBSD: if_mue.c,v 1.3 2018/08/04 16:42:46 jsg Exp $	*/
 
 /*
@@ -20,7 +20,7 @@
 /* Driver for Microchip LAN7500/LAN7800 chipsets. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_mue.c,v 1.35 2019/02/06 08:26:30 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mue.c,v 1.36 2019/02/06 08:28:11 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -933,7 +933,6 @@ mue_attach(device_t parent, device_t sel
 	}
 
 	usb_init_task(&sc->mue_tick_task, mue_tick_task, sc, 0);
-	usb_init_task(&sc->mue_stop_task, (void (*)(void *))mue_stop, sc, 0);
 
 #define MUE_IFACE_IDX	0
 	err = usbd_device2interface_handle(dev, MUE_IFACE_IDX, &sc->mue_iface);
@@ -1090,8 +1089,6 @@ mue_detach(device_t self, int flags)
 	 */
 	usb_rem_task_wait(sc->mue_udev, &sc->mue_tick_task, USB_TASKQ_DRIVER,
 	    NULL);
-	usb_rem_task_wait(sc->mue_udev, &sc->mue_stop_task, USB_TASKQ_DRIVER,
-	    NULL);
 
 	s = splusb();
 
@@ -1149,7 +1146,6 @@ mue_rx_list_init(struct mue_softc *sc)
 	for (i = 0; i < sc->mue_rx_list_cnt; i++) {
 		c = &cd->mue_rx_chain[i];
 		c->mue_sc = sc;
-		c->mue_idx = i;
 		if (c->mue_xfer == NULL) {
 			err = usbd_create_xfer(sc->mue_ep[MUE_ENDPT_RX],
 			    sc->mue_rxbufsz, 0, 0, &c->mue_xfer);
@@ -1174,7 +1170,6 @@ mue_tx_list_init(struct mue_softc *sc)
 	for (i = 0; i < sc->mue_tx_list_cnt; i++) {
 		c = &cd->mue_tx_chain[i];
 		c->mue_sc = sc;
-		c->mue_idx = i;
 		if (c->mue_xfer == NULL) {
 			err = usbd_create_xfer(sc->mue_ep[MUE_ENDPT_TX],
 			    sc->mue_txbufsz, USBD_FORCE_SHORT_XFER, 0,

Index: src/sys/dev/usb/if_muevar.h
diff -u src/sys/dev/usb/if_muevar.h:1.6 src/sys/dev/usb/if_muevar.h:1.7
--- src/sys/dev/usb/if_muevar.h:1.6	Sun Feb  3 13:11:07 2019
+++ src/sys/dev/usb/if_muevar.h	Wed Feb  6 08:28:11 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_muevar.h,v 1.6 2019/02/03 13:11:07 mlelstv Exp $	*/
+/*	$NetBSD: if_muevar.h,v 1.7 2019/02/06 08:28:11 rin Exp $	*/
 /*	$OpenBSD: if_muereg.h,v 1.1 2018/08/03 01:50:15 kevlo Exp $	*/
 
 /*
@@ -26,8 +26,6 @@ struct mue_chain {
 	struct mue_softc	*mue_sc;
 	struct usbd_xfer	*mue_xfer;
 	char			*mue_buf;
-	int			mue_accum;
-	int			mue_idx;
 };
 
 struct mue_cdata {
@@ -40,9 +38,7 @@ struct mue_cdata {
 #endif
 	struct mue_chain	mue_rx_chain[MUE_RX_LIST_CNT];
 	int			mue_tx_prod;
-	int			mue_tx_cons;
 	int			mue_tx_cnt;
-	int			mue_rx_prod;
 };
 
 struct mue_rxbuf_hdr {
@@ -103,11 +99,11 @@ struct mue_softc {
 	struct usbd_interface	*mue_iface;
 
 	struct usb_task		mue_tick_task;
-	struct usb_task		mue_stop_task;
 
 	kmutex_t		mue_mii_lock;
 
 	struct timeval		mue_rx_notice;
+	struct timeval		mue_tx_notice;
 
 	uint16_t		mue_product;
 	uint16_t		mue_flags;

Reply via email to