diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-09-14 12:50:33 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-09-18 10:46:25 +0300 |
commit | d8bb26b964038a465a944a393e83d7fb9f0c5f28 (patch) | |
tree | 7102462fa20b4102593cce52a1010d60ea6e4003 /drivers/net/wireless/ath/ath10k/mac.c | |
parent | ac04506c73d19dc8bdc167f79eef05d6bae5b644 (diff) |
ath10k: else is not generally useful after a break or return
Fixes checkpatch warnings:
WARNING: else is not generally useful after a break or return
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/mac.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/mac.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index c1cf6ff319e..28e6db1d384 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -698,8 +698,8 @@ static int ath10k_monitor_recalc(struct ath10k *ar) if (should_start) return ath10k_monitor_start(ar); - else - return ath10k_monitor_stop(ar); + + return ath10k_monitor_stop(ar); } static int ath10k_recalc_rtscts_prot(struct ath10k_vif *arvif) @@ -4065,8 +4065,8 @@ ath10k_bitrate_mask_nss(const struct cfg80211_bitrate_mask *mask, continue; else if (mask->control[band].ht_mcs[i] == 0x00) break; - else - return false; + + return false; } ht_nss = i; @@ -4077,8 +4077,8 @@ ath10k_bitrate_mask_nss(const struct cfg80211_bitrate_mask *mask, continue; else if (mask->control[band].vht_mcs[i] == 0x0000) break; - else - return false; + + return false; } vht_nss = i; |