diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-07-07 20:21:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-08 01:47:46 +0300 |
commit | 964201de695b8afca80652f048a95dc2cb68fcb7 (patch) | |
tree | 6017e5b08ea2c376a05e060c516be2ff36f7cad7 /net/sched/act_csum.c | |
parent | 535094a0c9c4908a31f3158a647e203ceeecf277 (diff) | |
download | linux-964201de695b8afca80652f048a95dc2cb68fcb7.tar.xz |
net/sched: 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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_csum.c')
-rw-r--r-- | net/sched/act_csum.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/act_csum.c b/net/sched/act_csum.c index cb8608f0a77a..9035355e867f 100644 --- a/net/sched/act_csum.c +++ b/net/sched/act_csum.c @@ -598,7 +598,8 @@ again: if (!tcf_csum_ipv6(skb, update_flags)) goto drop; break; - case cpu_to_be16(ETH_P_8021AD): /* fall through */ + case cpu_to_be16(ETH_P_8021AD): + fallthrough; case cpu_to_be16(ETH_P_8021Q): if (skb_vlan_tag_present(skb) && !orig_vlan_tag_present) { protocol = skb->protocol; |