Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb replace macro with inline function



details:   https://anonhg.NetBSD.org/src/rev/2c27c61fab71
branches:  trunk
changeset: 785799:2c27c61fab71
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Mar 30 03:17:33 2013 +0000

description:
replace macro with inline function

diffstat:

 sys/dev/usb/if_run.c   |  6 +++---
 sys/dev/usb/if_urtwn.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r ba9e44caa57d -r 2c27c61fab71 sys/dev/usb/if_run.c
--- a/sys/dev/usb/if_run.c      Sat Mar 30 03:15:52 2013 +0000
+++ b/sys/dev/usb/if_run.c      Sat Mar 30 03:17:33 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_run.c,v 1.8 2013/01/22 12:40:42 jmcneill Exp $      */
+/*     $NetBSD: if_run.c,v 1.9 2013/03/30 03:17:33 christos Exp $      */
 /*     $OpenBSD: if_run.c,v 1.90 2012/03/24 15:11:04 jsg Exp $ */
 
 /*-
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_run.c,v 1.8 2013/01/22 12:40:42 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_run.c,v 1.9 2013/03/30 03:17:33 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/sockio.h>
@@ -2251,7 +2251,7 @@
 #endif
        type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK;
 
-       if ((hasqos = IEEE80211_QOS_HAS_SEQ(wh))) {
+       if ((hasqos = ieee80211_has_qos(wh))) {
                qos = ((struct ieee80211_qosframe *)wh)->i_qos[0];
                tid = qos & IEEE80211_QOS_TID;
                qid = TID_TO_WME_AC(tid);
diff -r ba9e44caa57d -r 2c27c61fab71 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Sat Mar 30 03:15:52 2013 +0000
+++ b/sys/dev/usb/if_urtwn.c    Sat Mar 30 03:17:33 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_urtwn.c,v 1.22 2013/03/12 14:19:34 christos Exp $   */
+/*     $NetBSD: if_urtwn.c,v 1.23 2013/03/30 03:17:33 christos Exp $   */
 /*     $OpenBSD: if_urtwn.c,v 1.20 2011/11/26 06:39:33 ckuethe Exp $   */
 
 /*-
@@ -22,7 +22,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.22 2013/03/12 14:19:34 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.23 2013/03/30 03:17:33 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -2197,7 +2197,7 @@
                bpf_mtap2(sc->sc_drvbpf, tap, sc->sc_txtap_len, m);
        }
 
-       if ((hasqos = IEEE80211_QOS_HAS_SEQ(wh))) {
+       if ((hasqos = ieee80211_has_qos(wh))) {
                /* data frames in 11n mode */
                struct ieee80211_qosframe *qwh = (void *)wh;
                tid = qwh->i_qos[0] & IEEE80211_QOS_TID;



Home | Main Index | Thread Index | Old Index