aboutsummaryrefslogtreecommitdiff
path: root/net/mac80211/chan.c
diff options
context:
space:
mode:
authorGravatar Gustavo A. R. Silva <gustavoars@kernel.org> 2020-07-07 15:45:48 -0500
committerGravatar Johannes Berg <johannes.berg@intel.com> 2020-07-31 09:24:23 +0200
commitfc0561dc6a9c61613ea703f54f9cf1c6bb2e0b68 (patch)
treeffb1bd124c09926f81a4203ecf973457f9ab5f5b /net/mac80211/chan.c
parentnl80211: Simplify error handling path in 'nl80211_trigger_scan()' (diff)
downloadlinux-fc0561dc6a9c61613ea703f54f9cf1c6bb2e0b68.tar.gz
linux-fc0561dc6a9c61613ea703f54f9cf1c6bb2e0b68.tar.bz2
linux-fc0561dc6a9c61613ea703f54f9cf1c6bb2e0b68.zip
mac80211: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case. [1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/20200707204548.GA9320@embeddedor Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/chan.c')
-rw-r--r--net/mac80211/chan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c
index 08cf9da9c1e3..bdc0f29dc6cd 100644
--- a/net/mac80211/chan.c
+++ b/net/mac80211/chan.c
@@ -748,7 +748,7 @@ void ieee80211_recalc_smps_chanctx(struct ieee80211_local *local,
default:
WARN_ONCE(1, "Invalid SMPS mode %d\n",
sdata->smps_mode);
- /* fall through */
+ fallthrough;
case IEEE80211_SMPS_OFF:
needed_static = sdata->needed_rx_chains;
needed_dynamic = sdata->needed_rx_chains;