summaryrefslogtreecommitdiff
path: root/sys/dev/ic/gem.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-11-07 18:00:32 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-11-07 18:00:32 +0000
commitdc5c8ea2fa9b1dd94332d88dbdcc077a2c7dd31b (patch)
tree113d13707b8fd486c8818d9248c7c7632fecf14c /sys/dev/ic/gem.c
parentaf861e6bfa5c59d16360be0cabf2467d706faef6 (diff)
Remove storing the Ethernet header in the receve interrupt handler, the
disabled code that used to use this was removed 7 years ago.
Diffstat (limited to 'sys/dev/ic/gem.c')
-rw-r--r--sys/dev/ic/gem.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c
index 35f7fb181df..2f734b2d72c 100644
--- a/sys/dev/ic/gem.c
+++ b/sys/dev/ic/gem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gem.c,v 1.80 2008/11/07 17:37:59 brad Exp $ */
+/* $OpenBSD: gem.c,v 1.81 2008/11/07 18:00:31 brad Exp $ */
/* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */
/*
@@ -926,7 +926,6 @@ gem_rint(struct gem_softc *sc)
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
bus_space_tag_t t = sc->sc_bustag;
bus_space_handle_t h = sc->sc_h1;
- struct ether_header *eh;
struct gem_rxsoft *rxs;
struct mbuf *m;
u_int64_t rxstat;
@@ -987,7 +986,6 @@ gem_rint(struct gem_softc *sc)
m->m_data += 2; /* We're already off by two */
ifp->if_ipackets++;
- eh = mtod(m, struct ether_header *);
m->m_pkthdr.rcvif = ifp;
m->m_pkthdr.len = m->m_len = len;