svn commit: r260463 - head/sys/dev/usb/wlan
Kevin Lo
kevlo at FreeBSD.org
Thu Jan 9 01:48:34 UTC 2014
Author: kevlo
Date: Thu Jan 9 01:48:33 2014
New Revision: 260463
URL: http://svnweb.freebsd.org/changeset/base/260463
Log:
Replace deprecated M_DONTWAIT with M_NOWAIT.
Modified:
head/sys/dev/usb/wlan/if_rsu.c
head/sys/dev/usb/wlan/if_urtwn.c
Modified: head/sys/dev/usb/wlan/if_rsu.c
==============================================================================
--- head/sys/dev/usb/wlan/if_rsu.c Thu Jan 9 00:59:03 2014 (r260462)
+++ head/sys/dev/usb/wlan/if_rsu.c Thu Jan 9 01:48:33 2014 (r260463)
@@ -1145,11 +1145,11 @@ rsu_event_survey(struct rsu_softc *sc, u
pktlen = sizeof(*wh) + le32toh(bss->ieslen);
if (__predict_false(pktlen > MCLBYTES))
return;
- MGETHDR(m, M_DONTWAIT, MT_DATA);
+ MGETHDR(m, M_NOWAIT, MT_DATA);
if (__predict_false(m == NULL))
return;
if (pktlen > MHLEN) {
- MCLGET(m, M_DONTWAIT);
+ MCLGET(m, M_NOWAIT);
if (!(m->m_flags & M_EXT)) {
m_free(m);
return;
@@ -1358,13 +1358,13 @@ rsu_rx_frame(struct rsu_softc *sc, uint8
DPRINTFN(5, "Rx frame len=%d rate=%d infosz=%d rssi=%d\n",
pktlen, rate, infosz, *rssi);
- MGETHDR(m, M_DONTWAIT, MT_DATA);
+ MGETHDR(m, M_NOWAIT, MT_DATA);
if (__predict_false(m == NULL)) {
ifp->if_ierrors++;
return NULL;
}
if (pktlen > MHLEN) {
- MCLGET(m, M_DONTWAIT);
+ MCLGET(m, M_NOWAIT);
if (__predict_false(!(m->m_flags & M_EXT))) {
ifp->if_ierrors++;
m_freem(m);
Modified: head/sys/dev/usb/wlan/if_urtwn.c
==============================================================================
--- head/sys/dev/usb/wlan/if_urtwn.c Thu Jan 9 00:59:03 2014 (r260462)
+++ head/sys/dev/usb/wlan/if_urtwn.c Thu Jan 9 01:48:33 2014 (r260463)
@@ -625,7 +625,7 @@ urtwn_rx_frame(struct urtwn_softc *sc, u
rssi = URTWN_RSSI(rssi);
}
- m = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR);
+ m = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
if (m == NULL) {
device_printf(sc->sc_dev, "could not create RX mbuf\n");
return (NULL);
More information about the svn-src-all
mailing list