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/76fcc8cc13f7
branches:  trunk
changeset: 448986:76fcc8cc13f7
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Feb 17 09:33:19 2019 +0000

description:
Remove unused.

diffstat:

 sys/dev/usb/if_axen.c    |  6 ++----
 sys/dev/usb/if_axenreg.h |  6 +-----
 2 files changed, 3 insertions(+), 9 deletions(-)

diffs (61 lines):

diff -r 3d5c8ab2e89a -r 76fcc8cc13f7 sys/dev/usb/if_axen.c
--- a/sys/dev/usb/if_axen.c     Sun Feb 17 09:29:35 2019 +0000
+++ b/sys/dev/usb/if_axen.c     Sun Feb 17 09:33:19 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_axen.c,v 1.36 2019/02/07 10:36:20 mlelstv Exp $     */
+/*     $NetBSD: if_axen.c,v 1.37 2019/02/17 09:33:19 rin Exp $ */
 /*     $OpenBSD: if_axen.c,v 1.3 2013/10/21 10:10:22 yuo Exp $ */
 
 /*
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_axen.c,v 1.36 2019/02/07 10:36:20 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_axen.c,v 1.37 2019/02/17 09:33:19 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -950,7 +950,6 @@
        for (i = 0; i < AXEN_RX_LIST_CNT; i++) {
                c = &cd->axen_rx_chain[i];
                c->axen_sc = sc;
-               c->axen_idx = i;
                if (c->axen_xfer == NULL) {
                        int err = usbd_create_xfer(sc->axen_ep[AXEN_ENDPT_RX],
                            sc->axen_rx_bufsz, 0, 0, &c->axen_xfer);
@@ -976,7 +975,6 @@
        for (i = 0; i < AXEN_TX_LIST_CNT; i++) {
                c = &cd->axen_tx_chain[i];
                c->axen_sc = sc;
-               c->axen_idx = i;
                if (c->axen_xfer == NULL) {
                        int err = usbd_create_xfer(sc->axen_ep[AXEN_ENDPT_TX],
                            sc->axen_tx_bufsz, USBD_FORCE_SHORT_XFER, 0,
diff -r 3d5c8ab2e89a -r 76fcc8cc13f7 sys/dev/usb/if_axenreg.h
--- a/sys/dev/usb/if_axenreg.h  Sun Feb 17 09:29:35 2019 +0000
+++ b/sys/dev/usb/if_axenreg.h  Sun Feb 17 09:33:19 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_axenreg.h,v 1.10 2019/02/06 08:38:41 rin Exp $      */
+/*     $NetBSD: if_axenreg.h,v 1.11 2019/02/17 09:33:19 rin Exp $      */
 /*     $OpenBSD: if_axenreg.h,v 1.1 2013/10/07 05:37:41 yuo Exp $      */
 
 /*
@@ -243,17 +243,13 @@
        struct axen_softc       *axen_sc;
        struct usbd_xfer        *axen_xfer;
        uint8_t                 *axen_buf;
-       int                     axen_accum;
-       int                     axen_idx;
 };
 
 struct axen_cdata {
        struct axen_chain       axen_tx_chain[AXEN_TX_LIST_CNT];
        struct axen_chain       axen_rx_chain[AXEN_RX_LIST_CNT];
        int                     axen_tx_prod;
-       int                     axen_tx_cons;
        int                     axen_tx_cnt;
-       int                     axen_rx_prod;
 };
 
 struct axen_qctrl {



Home | Main Index | Thread Index | Old Index