carl9170: Use fallthrough pseudo-keyword
PATCH 1/1 carl9170: 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/carl9170/rx.c | 2 +- drivers/net/wireless/ath/carl9170/tx.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/wireless/ath/carl9170/rx.c +1 -1
@@ -766,7 +766,7 @@ static void carl9170_rx_untie_data(struct ar9170 *ar, u8 *buf, int len) goto drop; } -/* fall through */ + fallthrough;case AR9170_RX_STATUS_MPDU_MIDDLE :/* These are just data + mac status */
drivers/net/wireless/ath/carl9170/tx.c +3 -3
@@ -830,12 +830,12 @@ static bool carl9170_tx_rts_check(struct ar9170 *ar,case CARL9170_ERP_AUTO :if (ampdu)break ; -/* fall through */ + fallthrough;case CARL9170_ERP_MAC80211 :if (!(rate->flags &IEEE80211_TX_RC_USE_RTS_CTS ))break ; -/* fall through */ + fallthrough;case CARL9170_ERP_RTS :if (likely (!multi))
@@ -856,7 +856,7 @@ static bool carl9170_tx_cts_check(struct ar9170 *ar,case CARL9170_ERP_MAC80211 :if (!(rate->flags &IEEE80211_TX_RC_USE_CTS_PROTECT ))break ; -/* fall through */ + fallthrough;case CARL9170_ERP_CTS :return true;
Signature · 1 line
2.27.0
Quoted 6 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]>
Quoted 8 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.
6df74f61e9a2 carl9170: Use fallthrough pseudo-keyword
Signature · 3 lines
https://patchwork.kernel.org/patch/11728239/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches