diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2017-10-10 22:01:16 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-18 16:53:50 +0300 |
commit | 640019bba41942b7ee99385abe068e0f7c3e736d (patch) | |
tree | cdd28468643acc5dcb5e56fde6b6e2a23918e8b0 /drivers/staging/rtlwifi/base.c | |
parent | f8af6a323368dd28fcea9742d582593c9adb2261 (diff) | |
download | linux-640019bba41942b7ee99385abe068e0f7c3e736d.tar.xz |
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: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtlwifi/base.c')
-rw-r--r-- | drivers/staging/rtlwifi/base.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/rtlwifi/base.c b/drivers/staging/rtlwifi/base.c index f80770fcd126..38e48f39a9ed 100644 --- a/drivers/staging/rtlwifi/base.c +++ b/drivers/staging/rtlwifi/base.c @@ -2335,9 +2335,7 @@ static struct sk_buff *rtl_make_smps_action(struct ieee80211_hw *hw, case IEEE80211_SMPS_AUTOMATIC:/* 0 */ case IEEE80211_SMPS_NUM_MODES:/* 4 */ WARN_ON(1); - /* Here will get a 'MISSING_BREAK' in Coverity Test, just ignore it. - * According to Kernel Code, here is right. - */ + /* fall through */ case IEEE80211_SMPS_OFF:/* 1 */ /*MIMO_PS_NOLIMIT*/ action_frame->u.action.u.ht_smps.smps_control = WLAN_HT_SMPS_CONTROL_DISABLED;/* 0 */ |