From: John W. Linville Date: Mon, 12 Jan 2015 21:07:02 +0000 (-0500) Subject: ath10k: document switch case fall-through in __ath10k_scan_finish X-Git-Tag: v4.0-rc1~133^2~10^2^2~31 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f6eaf1e063bc0cb8efbd514aaffe5a4ef575ee02;p=karo-tx-linux.git 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 Signed-off-by: Kalle Valo --- 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) case ATH10K_SCAN_RUNNING: if (ar->scan.is_roc) ieee80211_remain_on_channel_expired(ar->hw); + /* fall through */ case ATH10K_SCAN_ABORTING: if (!ar->scan.is_roc) ieee80211_scan_completed(ar->hw,