aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nft_ct.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-03-05 02:42:09 -0600
committerPablo Neira Ayuso <pablo@netfilter.org>2021-03-18 00:32:48 +0100
commitc2168e6bd7ec50cedb69b3be1ba6146e28893c69 (patch)
treef127865a393f6f5dae3866567d62d3ea25f56b16 /net/netfilter/nft_ct.c
parentnetfilter: flowtable: separate replace, destroy and stats to different workqueues (diff)
downloadlinux-dev-c2168e6bd7ec50cedb69b3be1ba6146e28893c69.tar.xz
linux-dev-c2168e6bd7ec50cedb69b3be1ba6146e28893c69.zip
netfilter: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break statements instead of just letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Acked-by: Florian Westphal <fw@strlen.de> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_ct.c')
-rw-r--r--net/netfilter/nft_ct.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nft_ct.c b/net/netfilter/nft_ct.c
index 882fe8648653..0592a9456084 100644
--- a/net/netfilter/nft_ct.c
+++ b/net/netfilter/nft_ct.c
@@ -527,6 +527,7 @@ static void __nft_ct_set_destroy(const struct nft_ctx *ctx, struct nft_ct *priv)
case NFT_CT_ZONE:
if (--nft_ct_pcpu_template_refcnt == 0)
nft_ct_tmpl_put_pcpu();
+ break;
#endif
default:
break;