mac80211: remove useless brackets in ieee80211_cfg_on_oper_channel
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 3 Nov 2011 09:40:46 +0000 (10:40 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Nov 2011 21:01:01 +0000 (16:01 -0500)
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c

index 094fd57..7217019 100644 (file)
@@ -126,8 +126,8 @@ bool ieee80211_cfg_on_oper_channel(struct ieee80211_local *local)
                return false;
 
        /* 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 true;