From 40be5c8e4af6a341fe5f05fc6b1f7720e40172b1 Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Sun, 11 Jan 2009 11:09:08 +0800 Subject: [PATCH] Remove unused bfe_softc fields --- sys/dev/netif/bfe/if_bfe.c | 3 +-- sys/dev/netif/bfe/if_bfereg.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/netif/bfe/if_bfe.c b/sys/dev/netif/bfe/if_bfe.c index c8a2dcb..0efc1f1 100644 --- a/sys/dev/netif/bfe/if_bfe.c +++ b/sys/dev/netif/bfe/if_bfe.c @@ -609,7 +609,6 @@ bfe_list_newbuf(struct bfe_softc *sc, int c, struct mbuf *m) rx_header->flags = 0; /* Map the mbuf into DMA */ - sc->bfe_rx_cnt = c; d = &sc->bfe_rx_list[c]; r = &sc->bfe_rx_ring[c]; /* XXX error? */ @@ -732,7 +731,7 @@ bfe_chip_reset(struct bfe_softc *sc) if (CSR_READ_4(sc, BFE_DMARX_STAT) & BFE_STAT_EMASK) bfe_wait_bit(sc, BFE_DMARX_STAT, BFE_STAT_SIDLE, 100, 0); CSR_WRITE_4(sc, BFE_DMARX_CTRL, 0); - sc->bfe_rx_prod = sc->bfe_rx_cons = 0; + sc->bfe_rx_cons = 0; } bfe_core_reset(sc); diff --git a/sys/dev/netif/bfe/if_bfereg.h b/sys/dev/netif/bfe/if_bfereg.h index 393f9c3..62b1553 100644 --- a/sys/dev/netif/bfe/if_bfereg.h +++ b/sys/dev/netif/bfe/if_bfereg.h @@ -489,7 +489,7 @@ struct bfe_softc uint32_t bfe_imask; uint32_t bfe_dma_offset; uint32_t bfe_tx_cnt, bfe_tx_cons, bfe_tx_prod; - uint32_t bfe_rx_cnt, bfe_rx_prod, bfe_rx_cons; + uint32_t bfe_rx_cons; uint32_t bfe_tx_dma, bfe_rx_dma; uint32_t bfe_link; uint8_t bfe_phyaddr; /* Address of the card's PHY */ -- 1.7.7.2