Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Remove unused.



details:   https://anonhg.NetBSD.org/src/rev/9a2856ca504a
branches:  trunk
changeset: 839059:9a2856ca504a
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Feb 06 08:28:11 2019 +0000

description:
Remove unused.

diffstat:

 sys/dev/usb/if_mue.c    |  9 ++-------
 sys/dev/usb/if_muevar.h |  8 ++------
 2 files changed, 4 insertions(+), 13 deletions(-)

diffs (92 lines):

diff -r eb6549499081 -r 9a2856ca504a sys/dev/usb/if_mue.c
--- a/sys/dev/usb/if_mue.c      Wed Feb 06 08:26:30 2019 +0000
+++ b/sys/dev/usb/if_mue.c      Wed Feb 06 08:28:11 2019 +0000
@@ -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 @@
        }
 
        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 @@
         */
        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 @@
        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 @@
        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,
diff -r eb6549499081 -r 9a2856ca504a sys/dev/usb/if_muevar.h
--- a/sys/dev/usb/if_muevar.h   Wed Feb 06 08:26:30 2019 +0000
+++ b/sys/dev/usb/if_muevar.h   Wed Feb 06 08:28:11 2019 +0000
@@ -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_softc        *mue_sc;
        struct usbd_xfer        *mue_xfer;
        char                    *mue_buf;
-       int                     mue_accum;
-       int                     mue_idx;
 };
 
 struct mue_cdata {
@@ -40,9 +38,7 @@
 #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 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;



Home | Main Index | Thread Index | Old Index