Commit 35acfbab authored by Li RongQing's avatar Li RongQing Committed by Pablo Neira Ayuso

netfilter: remove unneeded switch fall-through

Empty case is fine and does not switch fall-through
Signed-off-by: default avatarLi RongQing <lirongqing@baidu.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent cc169213
...@@ -240,7 +240,7 @@ static bool l4proto_in_range(const struct nf_conntrack_tuple *tuple, ...@@ -240,7 +240,7 @@ static bool l4proto_in_range(const struct nf_conntrack_tuple *tuple,
__be16 port; __be16 port;
switch (tuple->dst.protonum) { switch (tuple->dst.protonum) {
case IPPROTO_ICMP: /* fallthrough */ case IPPROTO_ICMP:
case IPPROTO_ICMPV6: case IPPROTO_ICMPV6:
return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) &&
ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id);
......
...@@ -221,7 +221,6 @@ nft_do_chain(struct nft_pktinfo *pkt, void *priv) ...@@ -221,7 +221,6 @@ nft_do_chain(struct nft_pktinfo *pkt, void *priv)
chain = regs.verdict.chain; chain = regs.verdict.chain;
goto do_chain; goto do_chain;
case NFT_CONTINUE: case NFT_CONTINUE:
/* fall through */
case NFT_RETURN: case NFT_RETURN:
nft_trace_packet(&info, chain, rule, nft_trace_packet(&info, chain, rule,
NFT_TRACETYPE_RETURN); NFT_TRACETYPE_RETURN);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment