From 7e50ebabbf9c3a5eeb9511d9f32c6104b56da5cd Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 19 Sep 2018 15:17:04 +0200 Subject: 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 Signed-off-by: Florian Westphal --- iptables/xtables-eb.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'iptables/xtables-eb.c') 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 -L ) */ 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); -- cgit v1.2.3