Forráskód Böngészése

mac80211: remove useless brackets in ieee80211_cfg_on_oper_channel

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Stanislaw Gruszka 13 éve
szülő
commit
0b62ffb53c
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      net/mac80211/main.c

+ 2 - 2
net/mac80211/main.c

@@ -126,8 +126,8 @@ bool ieee80211_cfg_on_oper_channel(struct ieee80211_local *local)
 		return false;
 		return false;
 
 
 	/* Check current hardware-config against oper_channel. */
 	/* Check current hardware-config against oper_channel. */
-	if ((local->oper_channel != local->hw.conf.channel) ||
-	    (local->_oper_channel_type != local->hw.conf.channel_type))
+	if (local->oper_channel != local->hw.conf.channel ||
+	    local->_oper_channel_type != local->hw.conf.channel_type)
 		return false;
 		return false;
 
 
 	return true;
 	return true;