bnx: Remove unused code
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 3 Aug 2012 07:57:43 +0000 (15:57 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 3 Aug 2012 07:57:58 +0000 (15:57 +0800)
sys/dev/netif/bnx/if_bnx.c
sys/dev/netif/bnx/if_bnxvar.h

index 4cb2baa..b14cc3f 100644 (file)
@@ -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;
index 2624e2b..7b4f2ea 100644 (file)
@@ -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 */