Remove unused.
This commit is contained in:
parent
144442f947
commit
d9fe5a835c
@ -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 @@ axen_rx_list_init(struct axen_softc *sc)
|
||||
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 @@ axen_tx_list_init(struct axen_softc *sc)
|
||||
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,
|
||||
|
@ -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_chain {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user