summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_zyd.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-02-10 23:25:47 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-02-10 23:25:47 +0000
commit7c403e2a069557e11eff809df4bef961e13e173b (patch)
tree949a90708e608d69befbfebaf83a339de05dc7ec /sys/dev/usb/if_zyd.c
parent47ef64699721c7759c4955e97de678fa3df4356c (diff)
Wireless drivers call if_input() via ieee80211_input() which set `rcvif'
on every received mbuf, so there's no need to initialize this pointer in the drivers. Tested by and ok phessler@
Diffstat (limited to 'sys/dev/usb/if_zyd.c')
-rw-r--r--sys/dev/usb/if_zyd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/if_zyd.c b/sys/dev/usb/if_zyd.c
index 74e7c6230a5..6b93a4b995d 100644
--- a/sys/dev/usb/if_zyd.c
+++ b/sys/dev/usb/if_zyd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_zyd.c,v 1.106 2014/12/22 02:28:52 tedu Exp $ */
+/* $OpenBSD: if_zyd.c,v 1.107 2015/02/10 23:25:46 mpi Exp $ */
/*-
* Copyright (c) 2006 by Damien Bergamini <damien.bergamini@free.fr>
@@ -1953,7 +1953,6 @@ zyd_rx_data(struct zyd_softc *sc, const uint8_t *buf, uint16_t len)
}
}
bcopy(plcp + 1, mtod(m, caddr_t), len);
- m->m_pkthdr.rcvif = ifp;
m->m_pkthdr.len = m->m_len = len;
#if NBPFILTER > 0