aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2015-01-12 16:07:02 -0500
committerKalle Valo <kvalo@qca.qualcomm.com>2015-01-15 05:35:48 -0500
commitf6eaf1e063bc0cb8efbd514aaffe5a4ef575ee02 (patch)
tree02a95d80378efe3470b4b92a261fb640d77033fe
parenta2fa88003213ea2167545b5306b4d54437b857b7 (diff)
ath10k: document switch case fall-through in __ath10k_scan_finish
Add a comment for indicating that the ATH10K_SCAN_RUNNING case falls through to the ATH10K_SCAN_ABORTING case in __ath10k_scan_finish. This will document that the lack of a break is intentional. Coverity: CID 1260017 Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r--drivers/net/wireless/ath/ath10k/mac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 36dde244b95f..9524bc59997f 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -2427,6 +2427,7 @@ void __ath10k_scan_finish(struct ath10k *ar)
2427 case ATH10K_SCAN_RUNNING: 2427 case ATH10K_SCAN_RUNNING:
2428 if (ar->scan.is_roc) 2428 if (ar->scan.is_roc)
2429 ieee80211_remain_on_channel_expired(ar->hw); 2429 ieee80211_remain_on_channel_expired(ar->hw);
2430 /* fall through */
2430 case ATH10K_SCAN_ABORTING: 2431 case ATH10K_SCAN_ABORTING:
2431 if (!ar->scan.is_roc) 2432 if (!ar->scan.is_roc)
2432 ieee80211_scan_completed(ar->hw, 2433 ieee80211_scan_completed(ar->hw,