diff options
author | Phil Sutter <phil@nwl.cc> | 2018-09-19 15:17:04 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-09-24 11:49:57 +0200 |
commit | 7e50ebabbf9c3a5eeb9511d9f32c6104b56da5cd (patch) | |
tree | 8096c2c282213fa2bdb6c9da6df58f4fa0e72608 /iptables/xtables-eb.c | |
parent | f40ce2d853591220f16c0851bf8665e6967af1f1 (diff) |
Fix a few cases of pointless assignments
This gets rid of a number of assignments which are either redundant or
not used afterwards.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/xtables-eb.c')
-rw-r--r-- | iptables/xtables-eb.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c index 6aa1cba3..84d554e9 100644 --- a/iptables/xtables-eb.c +++ b/iptables/xtables-eb.c @@ -817,7 +817,6 @@ int do_commandeb(struct nft_handle *h, int argc, char *argv[], char **table, { char *buffer; int c, i; - int zerochain = -1; /* Needed for the -Z option (we can have -Z <this> -L <that>) */ int chcounter = 0; /* Needed for -C */ int rule_nr = 0; int rule_nr_end = 0; @@ -968,7 +967,6 @@ print_zero: if (OPT_COMMANDS) xtables_error(PARAMETER_PROBLEM, "Multiple commands are not allowed"); - command = 'V'; printf("%s %s (nf_tables)\n", prog_name, prog_vers); exit(0); case 'h': /* Help */ @@ -1303,7 +1301,6 @@ print_zero: flags&LIST_C); } if (flags & OPT_ZERO) { - selected_chain = zerochain; ret = nft_chain_zero_counters(h, chain, *table, 0); } else if (command == 'F') { ret = nft_rule_flush(h, chain, *table, 0); |