Commit 765be445 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Kalle Valo

rtlwifi: Use fallthrough pseudo-keyword

Replace the existing /* fall through */ comments and its variants with
the new pseudo-keyword macro fallthrough[1].

[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/20200821061807.GA8412@embeddedor
parent f4ce4bf6
...@@ -2443,7 +2443,7 @@ static struct sk_buff *rtl_make_smps_action(struct ieee80211_hw *hw, ...@@ -2443,7 +2443,7 @@ static struct sk_buff *rtl_make_smps_action(struct ieee80211_hw *hw,
case IEEE80211_SMPS_AUTOMATIC:/* 0 */ case IEEE80211_SMPS_AUTOMATIC:/* 0 */
case IEEE80211_SMPS_NUM_MODES:/* 4 */ case IEEE80211_SMPS_NUM_MODES:/* 4 */
WARN_ON(1); WARN_ON(1);
/* fall through */ fallthrough;
case IEEE80211_SMPS_OFF:/* 1 */ /*MIMO_PS_NOLIMIT*/ case IEEE80211_SMPS_OFF:/* 1 */ /*MIMO_PS_NOLIMIT*/
action_frame->u.action.u.ht_smps.smps_control = action_frame->u.action.u.ht_smps.smps_control =
WLAN_HT_SMPS_CONTROL_DISABLED;/* 0 */ WLAN_HT_SMPS_CONTROL_DISABLED;/* 0 */
......
...@@ -227,7 +227,7 @@ static int rtl_op_add_interface(struct ieee80211_hw *hw, ...@@ -227,7 +227,7 @@ static int rtl_op_add_interface(struct ieee80211_hw *hw,
switch (ieee80211_vif_type_p2p(vif)) { switch (ieee80211_vif_type_p2p(vif)) {
case NL80211_IFTYPE_P2P_CLIENT: case NL80211_IFTYPE_P2P_CLIENT:
mac->p2p = P2P_ROLE_CLIENT; mac->p2p = P2P_ROLE_CLIENT;
/*fall through*/ fallthrough;
case NL80211_IFTYPE_STATION: case NL80211_IFTYPE_STATION:
if (mac->beacon_enabled == 1) { if (mac->beacon_enabled == 1) {
rtl_dbg(rtlpriv, COMP_MAC80211, DBG_LOUD, rtl_dbg(rtlpriv, COMP_MAC80211, DBG_LOUD,
...@@ -254,7 +254,7 @@ static int rtl_op_add_interface(struct ieee80211_hw *hw, ...@@ -254,7 +254,7 @@ static int rtl_op_add_interface(struct ieee80211_hw *hw,
break; break;
case NL80211_IFTYPE_P2P_GO: case NL80211_IFTYPE_P2P_GO:
mac->p2p = P2P_ROLE_GO; mac->p2p = P2P_ROLE_GO;
/*fall through*/ fallthrough;
case NL80211_IFTYPE_AP: case NL80211_IFTYPE_AP:
rtl_dbg(rtlpriv, COMP_MAC80211, DBG_LOUD, rtl_dbg(rtlpriv, COMP_MAC80211, DBG_LOUD,
"NL80211_IFTYPE_AP\n"); "NL80211_IFTYPE_AP\n");
......
...@@ -370,7 +370,7 @@ static void _rtl8812ae_phy_set_rfe_reg_24g(struct ieee80211_hw *hw) ...@@ -370,7 +370,7 @@ static void _rtl8812ae_phy_set_rfe_reg_24g(struct ieee80211_hw *hw)
rtl_set_bbreg(hw, RB_RFE_INV, BMASKRFEINV, 0x000); rtl_set_bbreg(hw, RB_RFE_INV, BMASKRFEINV, 0x000);
break; break;
} }
/* fall through */ fallthrough;
case 0: case 0:
case 2: case 2:
default: default:
......
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