summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_ethersubr.c
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2002-11-14 23:54:55 +0000
committerSam Leffler <sam@FreeBSD.org>2002-11-14 23:54:55 +0000
commit673d91916d8748ecccff3635f1b15cc602a3898e (patch)
tree84eb7252cc6a518796c6bf88903ed6e2d12e7b91 /sys/dev/usb/usb_ethersubr.c
parent9ef8b52020603fd01bf683a44d1c1ec25cd4ce09 (diff)
Notes
Diffstat (limited to 'sys/dev/usb/usb_ethersubr.c')
-rw-r--r--sys/dev/usb/usb_ethersubr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/usb/usb_ethersubr.c b/sys/dev/usb/usb_ethersubr.c
index 100d93a9b2ca..4e8daf37ebbb 100644
--- a/sys/dev/usb/usb_ethersubr.c
+++ b/sys/dev/usb/usb_ethersubr.c
@@ -80,7 +80,6 @@ Static void usbintr (void);
Static void usbintr()
{
- struct ether_header *eh;
struct mbuf *m;
struct usb_qdat *q;
struct ifnet *ifp;
@@ -90,12 +89,10 @@ Static void usbintr()
IF_DEQUEUE(&usbq_rx, m);
if (m == NULL)
break;
- eh = mtod(m, struct ether_header *);
q = (struct usb_qdat *)m->m_pkthdr.rcvif;
ifp = q->ifp;
m->m_pkthdr.rcvif = ifp;
- m_adj(m, sizeof(struct ether_header));
- ether_input(ifp, eh, m);
+ (*ifp->if_input)(ifp, m);
/* Re-arm the receiver */
(*q->if_rxstart)(ifp);