From: Sepherosa Ziehau Date: Mon, 13 Aug 2012 01:20:52 +0000 (+0800) Subject: bce: Unbreak LINT building X-Git-Tag: v3.2.0~408 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/16419552681758ecca8f804b0ec42e500b3e030a?ds=sidebyside bce: Unbreak LINT building Reminded-by: swildner@ --- diff --git a/sys/dev/netif/bce/if_bce.c b/sys/dev/netif/bce/if_bce.c index b963e1aba4..a352a3464f 100644 --- a/sys/dev/netif/bce/if_bce.c +++ b/sys/dev/netif/bce/if_bce.c @@ -112,12 +112,6 @@ static uint32_t bce_debug = BCE_WARN; * 536870912 = 1 in 4 * 1073741824 = 1 in 2 * - * bce_debug_l2fhdr_status_check: - * How often the l2_fhdr frame error check will fail. - * - * bce_debug_unexpected_attention: - * How often the unexpected attention check will fail. - * * bce_debug_mbuf_allocation_failure: * How often to simulate an mbuf allocation failure. * @@ -127,8 +121,6 @@ static uint32_t bce_debug = BCE_WARN; * bce_debug_bootcode_running_failure: * How often to simulate a bootcode failure. */ -static int bce_debug_l2fhdr_status_check = 0; -static int bce_debug_unexpected_attention = 0; static int bce_debug_mbuf_allocation_failure = 0; static int bce_debug_dma_map_addr_failure = 0; static int bce_debug_bootcode_running_failure = 0; @@ -329,7 +321,6 @@ static void bce_shutdown(device_t); /****************************************************************************/ #ifdef BCE_DEBUG static void bce_dump_mbuf(struct bce_softc *, struct mbuf *); -static void bce_dump_tx_mbuf_chain(struct bce_softc *, int, int); static void bce_dump_rx_mbuf_chain(struct bce_softc *, int, int); static void bce_dump_txbd(struct bce_softc *, int, struct tx_bd *); static void bce_dump_rxbd(struct bce_softc *, int, struct rx_bd *); @@ -6630,36 +6621,6 @@ bce_dump_mbuf(struct bce_softc *sc, struct mbuf *m) } -/****************************************************************************/ -/* Prints out the mbufs in the TX mbuf chain. */ -/* */ -/* Returns: */ -/* Nothing. */ -/****************************************************************************/ -static void -bce_dump_tx_mbuf_chain(struct bce_softc *sc, int chain_prod, int count) -{ - struct ifnet *ifp = &sc->arpcom.ac_if; - int i; - - if_printf(ifp, - "----------------------------" - " tx mbuf data " - "----------------------------\n"); - - for (i = 0; i < count; i++) { - if_printf(ifp, "txmbuf[%d]\n", chain_prod); - bce_dump_mbuf(sc, sc->tx_mbuf_ptr[chain_prod]); - chain_prod = TX_CHAIN_IDX(sc, NEXT_TX_BD(chain_prod)); - } - - if_printf(ifp, - "----------------------------" - "----------------" - "----------------------------\n"); -} - - /****************************************************************************/ /* Prints out the mbufs in the RX mbuf chain. */ /* */