summaryrefslogtreecommitdiffstats
path: root/iptables/nft.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-09-19 15:17:04 +0200
committerFlorian Westphal <fw@strlen.de>2018-09-24 11:49:57 +0200
commit7e50ebabbf9c3a5eeb9511d9f32c6104b56da5cd (patch)
tree8096c2c282213fa2bdb6c9da6df58f4fa0e72608 /iptables/nft.c
parentf40ce2d853591220f16c0851bf8665e6967af1f1 (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/nft.c')
-rw-r--r--iptables/nft.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/iptables/nft.c b/iptables/nft.c
index 032c3788..b81f41ab 100644
--- a/iptables/nft.c
+++ b/iptables/nft.c
@@ -2169,8 +2169,6 @@ int nft_rule_delete_num(struct nft_handle *h, const char *chain,
r = nft_rule_find(h, list, chain, table, NULL, rulenum);
if (r != NULL) {
- ret = 1;
-
DEBUGP("deleting rule by number %d\n", rulenum);
ret = __nft_rule_del(h, list, r);
if (ret < 0)