From bcc3e082aae151851210b07f44f4a6150a10c2a1 Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Fri, 3 Aug 2012 15:57:43 +0800 Subject: [PATCH] bnx: Remove unused code --- sys/dev/netif/bnx/if_bnx.c | 6 ------ sys/dev/netif/bnx/if_bnxvar.h | 1 - 2 files changed, 7 deletions(-) diff --git a/sys/dev/netif/bnx/if_bnx.c b/sys/dev/netif/bnx/if_bnx.c index 4cb2baa0a8..b14cc3f029 100644 --- a/sys/dev/netif/bnx/if_bnx.c +++ b/sys/dev/netif/bnx/if_bnx.c @@ -4283,11 +4283,6 @@ bnx_setup_tso(struct bnx_softc *sc, struct mbuf **mp, int thoff, iphlen, hoff, hlen; uint16_t flags, mss; -#if 0 - if (!ether_tso_pullup(mp, &hoff, &ip, &iphlen, &th, &thoff)) - return ENOBUFS; - m = *mp; -#else m = *mp; KASSERT(M_WRITABLE(m), ("TSO mbuf not writable")); @@ -4309,7 +4304,6 @@ bnx_setup_tso(struct bnx_softc *sc, struct mbuf **mp, } ip = mtodoff(m, struct ip *, hoff); th = mtodoff(m, struct tcphdr *, hoff + iphlen); -#endif mss = m->m_pkthdr.tso_segsz; flags = BGE_TXBDFLAG_CPU_PRE_DMA | BGE_TXBDFLAG_CPU_POST_DMA; diff --git a/sys/dev/netif/bnx/if_bnxvar.h b/sys/dev/netif/bnx/if_bnxvar.h index 2624e2bd4d..7b4f2ea19d 100644 --- a/sys/dev/netif/bnx/if_bnxvar.h +++ b/sys/dev/netif/bnx/if_bnxvar.h @@ -221,7 +221,6 @@ struct bnx_softc { struct bnx_chain_data bnx_cdata; /* mbufs */ uint16_t bnx_tx_saved_considx; uint16_t bnx_rx_saved_considx; - uint16_t bnx_ev_saved_considx; uint16_t bnx_return_ring_cnt; uint16_t bnx_std; /* current std ring head */ uint16_t bnx_jumbo; /* current jumo ring head */ -- 2.41.0