ath6kl: Use fallthrough pseudo-keyword
Subsystems (3)
PATCH 1/1 ath6kl: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1].
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/net/wireless/ath/ath6kl/cfg80211.c | 6 +++--- drivers/net/wireless/ath/ath6kl/main.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/wireless/ath/ath6kl/cfg80211.c +3 -3
@@ -3897,19 +3897,19 @@ int ath6kl_cfg80211_init(struct ath6kl *ar)switch (ar->hw.cap) {case WMI_11AN_CAP : ht = true; -/* fall through */ + fallthrough;case WMI_11A_CAP : band_5gig = true;break ;case WMI_11GN_CAP : ht = true; -/* fall through */ + fallthrough;case WMI_11G_CAP : band_2gig = true;break ;case WMI_11AGN_CAP : ht = true; -/* fall through */ + fallthrough;case WMI_11AG_CAP : band_2gig = true; band_5gig = true;
drivers/net/wireless/ath/ath6kl/main.c +1 -1
@@ -389,7 +389,7 @@ void ath6kl_connect_ap_mode_bss(struct ath6kl_vif *vif, u16 channel)if (!ik->valid || ik->key_type !=WAPI_CRYPT )break ;/* for WAPI, we need to set the delayed group key, continue: */ -/* fall through */ + fallthrough;case WPA_PSK_AUTH :case WPA2_PSK_AUTH :case (WPA_PSK_AUTH |WPA2_PSK_AUTH ):
Signature · 1 line
2.27.0
Quoted 7 lines · Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1].
Signed-off-by Gustavo A. R. Silva <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
8238bf0d4b67 ath6kl: Use fallthrough pseudo-keyword
Signature · 3 lines
https://patchwork.kernel.org/patch/11687483/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches