From: Kalle Valo Date: Tue, 30 Apr 2013 20:52:43 +0300 Subject: [ath9k-devel] [PATCH 06/10] ath10k: fix a long line in ath10k_update_channel_list() In-Reply-To: <20130430175053.5523.85177.stgit@localhost6.localdomain6> References: <20130430175053.5523.85177.stgit@localhost6.localdomain6> Message-ID: <20130430175243.5523.70513.stgit@localhost6.localdomain6> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Workaround a long line by adding a temporary variable. Also remove the !! as it's unnecessary when assigning to a boolean. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath10k/mac.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index ef76c21..b9c50fb 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -1080,6 +1080,7 @@ static void ath10k_update_channel_list(struct ath10k *ar) struct ieee80211_channel *channel; struct wmi_scan_chan_list_arg arg = {0}; struct wmi_channel_arg *ch; + bool passive; int len; int i; @@ -1122,8 +1123,9 @@ static void ath10k_update_channel_list(struct ath10k *ar) ch->ht40plus = !(channel->flags & IEEE80211_CHAN_NO_HT40PLUS); - ch->passive = - !!(channel->flags & IEEE80211_CHAN_PASSIVE_SCAN); + + passive = channel->flags & IEEE80211_CHAN_PASSIVE_SCAN; + ch->passive = passive; ch->freq = channel->center_freq; ch->min_power = channel->max_power * 3;