Commit 1808191d authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Kalle Valo

mt7601u: 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.

[1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-throughSigned-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200901173603.GA2701@embeddedor
parent 6a953dc4
...@@ -196,7 +196,7 @@ static void mt7601u_complete_rx(struct urb *urb) ...@@ -196,7 +196,7 @@ static void mt7601u_complete_rx(struct urb *urb)
default: default:
dev_err_ratelimited(dev->dev, "rx urb failed: %d\n", dev_err_ratelimited(dev->dev, "rx urb failed: %d\n",
urb->status); urb->status);
/* fall through */ fallthrough;
case 0: case 0:
break; break;
} }
...@@ -241,7 +241,7 @@ static void mt7601u_complete_tx(struct urb *urb) ...@@ -241,7 +241,7 @@ static void mt7601u_complete_tx(struct urb *urb)
default: default:
dev_err_ratelimited(dev->dev, "tx urb failed: %d\n", dev_err_ratelimited(dev->dev, "tx urb failed: %d\n",
urb->status); urb->status);
/* fall through */ fallthrough;
case 0: case 0:
break; break;
} }
......
...@@ -45,7 +45,7 @@ mt76_mac_process_tx_rate(struct ieee80211_tx_rate *txrate, u16 rate) ...@@ -45,7 +45,7 @@ mt76_mac_process_tx_rate(struct ieee80211_tx_rate *txrate, u16 rate)
return; return;
case MT_PHY_TYPE_HT_GF: case MT_PHY_TYPE_HT_GF:
txrate->flags |= IEEE80211_TX_RC_GREEN_FIELD; txrate->flags |= IEEE80211_TX_RC_GREEN_FIELD;
/* fall through */ fallthrough;
case MT_PHY_TYPE_HT: case MT_PHY_TYPE_HT:
txrate->flags |= IEEE80211_TX_RC_MCS; txrate->flags |= IEEE80211_TX_RC_MCS;
txrate->idx = idx; txrate->idx = idx;
...@@ -419,7 +419,7 @@ mt76_mac_process_rate(struct ieee80211_rx_status *status, u16 rate) ...@@ -419,7 +419,7 @@ mt76_mac_process_rate(struct ieee80211_rx_status *status, u16 rate)
return; return;
case MT_PHY_TYPE_HT_GF: case MT_PHY_TYPE_HT_GF:
status->enc_flags |= RX_ENC_FLAG_HT_GF; status->enc_flags |= RX_ENC_FLAG_HT_GF;
/* fall through */ fallthrough;
case MT_PHY_TYPE_HT: case MT_PHY_TYPE_HT:
status->encoding = RX_ENC_HT; status->encoding = RX_ENC_HT;
status->rate_idx = idx; status->rate_idx = idx;
......
...@@ -787,7 +787,7 @@ mt7601u_phy_rf_pa_mode_val(struct mt7601u_dev *dev, int phy_mode, int tx_rate) ...@@ -787,7 +787,7 @@ mt7601u_phy_rf_pa_mode_val(struct mt7601u_dev *dev, int phy_mode, int tx_rate)
switch (phy_mode) { switch (phy_mode) {
case MT_PHY_TYPE_OFDM: case MT_PHY_TYPE_OFDM:
tx_rate += 4; tx_rate += 4;
/* fall through */ fallthrough;
case MT_PHY_TYPE_CCK: case MT_PHY_TYPE_CCK:
reg = dev->rf_pa_mode[0]; reg = dev->rf_pa_mode[0];
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment