netfilter: 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> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:

committed by
Pablo Neira Ayuso

parent
35dfb01314
commit
954d82979b
@@ -1935,7 +1935,7 @@ static int compat_mtw_from_user(const struct compat_ebt_entry_mwt *mwt,
|
||||
size_kern = match_size;
|
||||
module_put(match->me);
|
||||
break;
|
||||
case EBT_COMPAT_WATCHER: /* fallthrough */
|
||||
case EBT_COMPAT_WATCHER:
|
||||
case EBT_COMPAT_TARGET:
|
||||
wt = xt_request_find_target(NFPROTO_BRIDGE, name,
|
||||
mwt->u.revision);
|
||||
|
Reference in New Issue
Block a user