summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-01-28 04:15:39 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-01-28 04:15:39 +0000
commitc1fd25184d17af46802f2cf878525e342172055c (patch)
tree418a96a3135ffc030ef5c39dfa3039033d26e311 /sys/arch
parentbaefabe63a283d94a74bea9dad3dbf113ada3909 (diff)
Remove (now) bogus diagnostic check and set the output length correctly (why this was done in -two- places is beyone me); spotted and tested by Nick.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mac68k/dev/if_ae.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/arch/mac68k/dev/if_ae.c b/sys/arch/mac68k/dev/if_ae.c
index 95a85c67521..79d72a2b491 100644
--- a/sys/arch/mac68k/dev/if_ae.c
+++ b/sys/arch/mac68k/dev/if_ae.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ae.c,v 1.19 2003/01/27 20:11:39 jason Exp $ */
+/* $OpenBSD: if_ae.c,v 1.20 2003/01/28 04:15:38 jason Exp $ */
/* $NetBSD: if_ae.c,v 1.62 1997/04/24 16:52:05 scottr Exp $ */
/*
@@ -425,15 +425,8 @@ outloop:
buffer = (sc->txb_new * ED_TXBUF_SIZE) << ED_PAGE_SHIFT;
len = ae_put(sc, m0, buffer);
-#if DIAGNOSTIC
- if (len != m0->m_pkthdr.len)
- printf("aestart: len %d != m0->m_pkthdr.len %d.\n",
- len, m0->m_pkthdr.len);
-#endif
- len = m0->m_pkthdr.len;
-
m_freem(m0);
- sc->txb_len[sc->txb_new] = max(len, ETHER_MIN_LEN);
+ sc->txb_len[sc->txb_new] = len;
/* Start the first packet transmitting. */
if (sc->txb_inuse == 0)