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/nft.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'iptables/nft.c') 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) -- cgit v1.2.3