diff options
| author | Gustavo A. R. Silva <[email protected]> | 2020-11-17 15:59:04 +0000 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2020-12-11 18:20:56 +0000 |
| commit | ff08b5368ce52bd1534a558e3bbcd0834a58c0de (patch) | |
| tree | ab7d5983ffc500de9e559b38be955518cd761cec /drivers/net/wireless/intel/iwlwifi/dvm/scan.c | |
| parent | iwlwifi: mvm: Fix fall-through warnings for Clang (diff) | |
| download | kernel-ff08b5368ce52bd1534a558e3bbcd0834a58c0de.tar.gz kernel-ff08b5368ce52bd1534a558e3bbcd0834a58c0de.zip | |
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 <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/20201117155904.GA14551@embeddedor
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/dvm/scan.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/dvm/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/scan.c b/drivers/net/wireless/intel/iwlwifi/dvm/scan.c index 832fcbb787e9..c4ecf6ed2186 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/scan.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/scan.c @@ -405,7 +405,7 @@ static u16 iwl_limit_dwell(struct iwl_priv *priv, u16 dwell_time) limit = (limits[1] * 98) / 100 - IWL_CHANNEL_TUNE_TIME * 2; limit /= 2; dwell_time = min(limit, dwell_time); - /* fall through */ + fallthrough; case 1: limit = (limits[0] * 98) / 100 - IWL_CHANNEL_TUNE_TIME * 2; limit /= n_active; |
