diff mbox series

[iptables] nft: Drop pointless assignment

Message ID 20200217141343.13539-1-phil@nwl.cc
State Accepted
Delegated to: Pablo Neira
Headers show
Series [iptables] nft: Drop pointless assignment | expand

Commit Message

Phil Sutter Feb. 17, 2020, 2:13 p.m. UTC
No need to set 'i' to zero here, it is not used before the next
assignment.

Fixes: 77e6a93d5c9dc ("xtables: add and set "implict" flag on transaction objects")
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 iptables/nft.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Pablo Neira Ayuso Feb. 18, 2020, 1 p.m. UTC | #1
On Mon, Feb 17, 2020 at 03:13:43PM +0100, Phil Sutter wrote:
> No need to set 'i' to zero here, it is not used before the next
> assignment.

Phil, for these nitpicks, you do not need to wait for an Ack.

Thank you.
diff mbox series

Patch

diff --git a/iptables/nft.c b/iptables/nft.c
index 806b77fed462b..2f0a8c4a772f7 100644
--- a/iptables/nft.c
+++ b/iptables/nft.c
@@ -2821,7 +2821,6 @@  retry:
 
 		nft_refresh_transaction(h);
 
-		i=0;
 		list_for_each_entry_safe(err, ne, &h->err_list, head)
 			mnl_err_list_free(err);