Commit 640019bb authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Greg Kroah-Hartman

staging: rtlwifi: mark expected switch fall-through in rtl_make_smps_action

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f8af6a32
...@@ -2335,9 +2335,7 @@ static struct sk_buff *rtl_make_smps_action(struct ieee80211_hw *hw, ...@@ -2335,9 +2335,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);
/* Here will get a 'MISSING_BREAK' in Coverity Test, just ignore it. /* fall through */
* According to Kernel Code, here is right.
*/
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 */
......
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