diff options
author | Phil Sutter <phil@nwl.cc> | 2018-02-28 16:06:16 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-02-28 16:59:19 +0100 |
commit | 7f31d3191622b650521014e311ace96aa7c5522c (patch) | |
tree | e27bde4056fd7b21f3d09aaf689aa2573238afc9 /src/ct.c | |
parent | 48b99f03b5e43eac2bf93251f8fa1c9ceb516abb (diff) |
Review switch statements for unmarked fall through cases
While revisiting all of them, clear a few oddities as well:
- There's no point in marking empty fall through cases: They are easy to
spot and a common concept when using switch().
- Fix indenting of break statement in one occasion.
- Drop needless braces around one case which doesn't declare variables.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/ct.c')
-rw-r--r-- | src/ct.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -289,7 +289,7 @@ static void ct_print(enum nft_ct_keys key, int8_t dir, uint8_t nfproto, } switch (key) { - case NFT_CT_SRC: /* fallthrough */ + case NFT_CT_SRC: case NFT_CT_DST: desc = proto_find_upper(&proto_inet, nfproto); if (desc) |