ath10k: Use fallthrough pseudo-keyword
Subsystems (3)
PATCH 1/1 ath10k: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case.
--- drivers/net/wireless/ath/ath10k/core.c | 2 +- drivers/net/wireless/ath/ath10k/htt_rx.c | 2 +- drivers/net/wireless/ath/ath10k/htt_tx.c | 6 +++--- drivers/net/wireless/ath/ath10k/mac.c | 18 +++++++++--------- drivers/net/wireless/ath/ath10k/wow.c | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-)
drivers/net/wireless/ath/ath10k/core.c +1 -1
@@ -2320,7 +2320,7 @@ static void ath10k_core_restart(struct work_struct *work)break ;case ATH10K_STATE_RESTARTED : ar->state =ATH10K_STATE_WEDGED ; -/* fall through */ + fallthrough;case ATH10K_STATE_WEDGED :ath10k_warn (ar,"device is wedged, will not restart\n" );break ;
drivers/net/wireless/ath/ath10k/htt_rx.c +1 -1
@@ -3017,7 +3017,7 @@ static int ath10k_htt_rx_in_ord_ind(struct ath10k *ar, struct sk_buff *skb)ath10k_htt_rx_h_enqueue (ar, &amsdu, status);break ;case -EAGAIN : -/* fall through */ + fallthrough;default :/* Should not happen. */ ath10k_warn (ar,"failed to extract amsdu: %d\n" , ret);
drivers/net/wireless/ath/ath10k/htt_tx.c +3 -3
@@ -1314,7 +1314,7 @@ static int ath10k_htt_tx_hl(struct ath10k_htt *htt, enum ath10k_hw_txrx_mode txmcase ATH10K_HW_TXRX_RAW :case ATH10K_HW_TXRX_NATIVE_WIFI : flags0 |=HTT_DATA_TX_DESC_FLAGS0_MAC_HDR_PRESENT ; -/* fall through */ + fallthrough;case ATH10K_HW_TXRX_ETHERNET : flags0 |=SM (txmode,HTT_DATA_TX_DESC_FLAGS0_PKT_TYPE );break ;
@@ -1460,7 +1460,7 @@ static int ath10k_htt_tx_32(struct ath10k_htt *htt,case ATH10K_HW_TXRX_RAW :case ATH10K_HW_TXRX_NATIVE_WIFI : flags0 |=HTT_DATA_TX_DESC_FLAGS0_MAC_HDR_PRESENT ; -/* fall through */ + fallthrough;case ATH10K_HW_TXRX_ETHERNET :if (ar->hw_params.continuous_frag_desc) { ext_desc_t = htt->frag_desc.vaddr_desc_32;
@@ -1662,7 +1662,7 @@ static int ath10k_htt_tx_64(struct ath10k_htt *htt,case ATH10K_HW_TXRX_RAW :case ATH10K_HW_TXRX_NATIVE_WIFI : flags0 |=HTT_DATA_TX_DESC_FLAGS0_MAC_HDR_PRESENT ; -/* fall through */ + fallthrough;case ATH10K_HW_TXRX_ETHERNET :if (ar->hw_params.continuous_frag_desc) { ext_desc_t = htt->frag_desc.vaddr_desc_64;
drivers/net/wireless/ath/ath10k/mac.c +9 -9
@@ -2473,17 +2473,17 @@ ath10k_peer_assoc_h_vht_limit(u16 tx_mcs_set, idx_limit =-1 ;switch (idx_limit) { -case 0 :/* fall through */ -case 1 :/* fall through */ -case 2 :/* fall through */ -case 3 :/* fall through */ -case 4 :/* fall through */ -case 5 :/* fall through */ -case 6 :/* fall through */ +case 0 : +case 1 : +case 2 : +case 3 : +case 4 : +case 5 : +case 6 :default :/* see ath10k_mac_can_set_bitrate_mask() */ WARN_ON (1 ); -/* fall through */ + fallthrough;case -1 : mcs =IEEE80211_VHT_MCS_NOT_SUPPORTED ;break ;
@@ -4243,7 +4243,7 @@ void __ath10k_scan_finish(struct ath10k *ar) }else if (ar->scan.roc_notify) {ieee80211_remain_on_channel_expired (ar->hw); } -/* fall through */ + fallthrough;case ATH10K_SCAN_STARTING : ar->scan.state =ATH10K_SCAN_IDLE ; ar->scan_channel =NULL ;
drivers/net/wireless/ath/ath10k/wow.c +1 -1
@@ -275,7 +275,7 @@ static int ath10k_vif_wow_set_wakeups(struct ath10k_vif *arvif,switch (arvif->vdev_type) {case WMI_VDEV_TYPE_IBSS :__set_bit (WOW_BEACON_EVENT , &wow_mask); -/* fall through */ + fallthrough;case WMI_VDEV_TYPE_AP :__set_bit (WOW_DEAUTH_RECVD_EVENT , &wow_mask);__set_bit (WOW_DISASSOC_RECVD_EVENT , &wow_mask);
Signature · 7 lines
2.27.0 _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 8 lines · Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case.
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.
1885c0f76dc0 ath10k: Use fallthrough pseudo-keyword
Signature · 3 lines
https://patchwork.kernel.org/patch/11687453/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 8 lines · Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case.
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.
1885c0f76dc0 ath10k: Use fallthrough pseudo-keyword
Signature · 9 lines
https://patchwork.kernel.org/patch/11687453/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k