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>
This commit is contained in:

committed by
Johannes Berg

parent
504776be46
commit
fc0561dc6a
@@ -4334,7 +4334,7 @@ static int __init init_mac80211_hwsim(void)
|
||||
break;
|
||||
case HWSIM_REGTEST_STRICT_ALL:
|
||||
param.reg_strict = true;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case HWSIM_REGTEST_DRIVER_REG_ALL:
|
||||
param.reg_alpha2 = hwsim_alpha2s[0];
|
||||
break;
|
||||
|
Reference in New Issue
Block a user