From 4f8410ce1376d1b10b35a33af99ac28b03bf3055 Mon Sep 17 00:00:00 2001 From: proski Date: Wed, 3 Aug 2011 00:25:04 +0000 Subject: [PATCH] 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 --- ath/if_ath.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ath/if_ath.c b/ath/if_ath.c index 28cac02..ed8d3e9 100644 --- a/ath/if_ath.c +++ b/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);