3 Aug 2011 02:25
revision 4153 committed
Pavel Roskin <svn-commits <at> madwifi-project.org>
2011-08-03 00:25:05 GMT
2011-08-03 00:25:05 GMT
Project : madwifi Revision : 4153 Author : proski (Pavel Roskin) Date : 2011-08-03 02:25:04 +0200 (Wed, 03 Aug 2011) Log Message : Fix pointless use of 0 in vap->iv_debug calculation Found by coccinelle. Affected Files: * madwifi/trunk/ath/if_ath.c updated Modified: madwifi/trunk/ath/if_ath.c =================================================================== --- madwifi/trunk/ath/if_ath.c 2011-08-03 00:18:57 UTC (rev 4152) +++ madwifi/trunk/ath/if_ath.c 2011-08-03 00:25:04 UTC (rev 4153) <at> <at> -1385,12 +1385,10 <at> <at> /* 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); ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1
RSS Feed