diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-03-05 02:42:09 -0600 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-03-18 00:32:48 +0100 |
commit | c2168e6bd7ec50cedb69b3be1ba6146e28893c69 (patch) | |
tree | f127865a393f6f5dae3866567d62d3ea25f56b16 /net/netfilter/nft_ct.c | |
parent | 2ed37183abb70233146dc82f19cb1cbceed2b505 (diff) | |
download | linux-c2168e6bd7ec50cedb69b3be1ba6146e28893c69.tar.gz linux-c2168e6bd7ec50cedb69b3be1ba6146e28893c69.tar.bz2 linux-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.c | 1 |
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; |