mirror of https://github.com/proski/madwifi
Fix pointless use of 0 in vap->iv_debug calculation
Found by coccinelle. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4153 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
c6569661e4
commit
4f8410ce13
10
ath/if_ath.c
10
ath/if_ath.c
|
@ -1385,12 +1385,10 @@ ath_vap_create(struct ieee80211com *ic, const char *name,
|
|||
/* If no default VAP debug flags are passed, allow a few to
|
||||
* transfer down from the driver to new VAPs so we can have load
|
||||
* time debugging for VAPs too. */
|
||||
vap->iv_debug = 0 |
|
||||
((sc->sc_debug & ATH_DEBUG_RATE) ? IEEE80211_MSG_XRATE : 0) |
|
||||
((sc->sc_debug & ATH_DEBUG_XMIT) ? IEEE80211_MSG_OUTPUT : 0) |
|
||||
((sc->sc_debug & ATH_DEBUG_RECV) ? IEEE80211_MSG_INPUT : 0) |
|
||||
0
|
||||
;
|
||||
vap->iv_debug =
|
||||
((sc->sc_debug & ATH_DEBUG_RATE) ? IEEE80211_MSG_XRATE : 0) |
|
||||
((sc->sc_debug & ATH_DEBUG_XMIT) ? IEEE80211_MSG_OUTPUT : 0) |
|
||||
((sc->sc_debug & ATH_DEBUG_RECV) ? IEEE80211_MSG_INPUT : 0);
|
||||
}
|
||||
ic->ic_debug = (sc->sc_default_ieee80211_debug & IEEE80211_MSG_IC);
|
||||
|
||||
|
|
Loading…
Reference in New Issue