diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-17 18:59:04 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-12-11 21:20:56 +0300 |
commit | ff08b5368ce52bd1534a558e3bbcd0834a58c0de (patch) | |
tree | ab7d5983ffc500de9e559b38be955518cd761cec /drivers/net/wireless/intel/iwlwifi/dvm/tx.c | |
parent | 5a2abdcadc3bd7c8f9a54a89bf0ed1926db993a3 (diff) | |
download | linux-ff08b5368ce52bd1534a558e3bbcd0834a58c0de.tar.xz |
iwlwifi: dvm: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly using the fallthrough pseudo-keyword as a
replacement for a number of "fall through" markings.
Notice that Clang doesn't recognize "fall through" comments as
implicit fall-through.
Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201117155904.GA14551@embeddedor
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/dvm/tx.c')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/dvm/tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/tx.c b/drivers/net/wireless/intel/iwlwifi/dvm/tx.c index e3962bb52328..847b8e07f81c 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/tx.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/tx.c @@ -210,7 +210,7 @@ static void iwlagn_tx_cmd_build_hwcrypto(struct iwl_priv *priv, case WLAN_CIPHER_SUITE_WEP104: tx_cmd->sec_ctl |= TX_CMD_SEC_KEY128; - /* fall through */ + fallthrough; case WLAN_CIPHER_SUITE_WEP40: tx_cmd->sec_ctl |= (TX_CMD_SEC_WEP | (keyconf->keyidx & TX_CMD_SEC_MSK) << TX_CMD_SEC_SHIFT); |