summaryrefslogtreecommitdiffstats
path: root/sys/dev/ti
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1999-04-06 22:56:21 +0000
committerwpaul <wpaul@FreeBSD.org>1999-04-06 22:56:21 +0000
commitb3871d56a7a5710307edbf003c3c6b5db8f5cce6 (patch)
tree2ce88e6d711b95934f1c4f60955141f770f83e7e /sys/dev/ti
parent172a8d5d4afb55bca2f722f2cebd4aabe902bd2c (diff)
downloadFreeBSD-src-b3871d56a7a5710307edbf003c3c6b5db8f5cce6.zip
FreeBSD-src-b3871d56a7a5710307edbf003c3c6b5db8f5cce6.tar.gz
Remove teensy-weensy bit of debug code that crept in.
Oh, I forgot to mention: this driver also works on FreeBSD/alpha (big thanks to Andrew Gallatin). And there is a 2.2.x version available for those who stubbornly refuse to upgrade.
Diffstat (limited to 'sys/dev/ti')
-rw-r--r--sys/dev/ti/if_ti.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c
index 33900df..befff6f 100644
--- a/sys/dev/ti/if_ti.c
+++ b/sys/dev/ti/if_ti.c
@@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_ti.c,v 1.106 1999/04/06 15:55:01 wpaul Exp $
+ * $Id: if_ti.c,v 1.1 1999/04/06 17:08:29 wpaul Exp $
*/
/*
@@ -128,7 +128,7 @@
#if !defined(lint)
static const char rcsid[] =
- "$Id: if_ti.c,v 1.106 1999/04/06 15:55:01 wpaul Exp $";
+ "$Id: if_ti.c,v 1.1 1999/04/06 17:08:29 wpaul Exp $";
#endif
/*
@@ -1756,7 +1756,6 @@ fail:
* 2) the frame is from the jumbo recieve ring
* 3) the frame is from the standard receive ring
*/
-int ti_cksumok = 0;
static void ti_rxeof(sc)
struct ti_softc *sc;
@@ -1855,10 +1854,8 @@ static void ti_rxeof(sc)
#ifdef TI_CSUM_OFFLOAD
ip = mtod(m, struct ip *);
if (!(cur_rx->ti_tcp_udp_cksum ^ 0xFFFF) &&
- !(ip->ip_off & htons(IP_MF | IP_OFFMASK | IP_RF))) {
+ !(ip->ip_off & htons(IP_MF | IP_OFFMASK | IP_RF)))
m->m_flags |= M_HWCKSUM;
- ti_cksumok++;
- }
#endif
#if NVLAN > 0
OpenPOWER on IntegriCloud