Skip to contentSkip to conversation

nft: Drop pointless assignment

PATCH In review Phil Sutter 2 participants 2 messages Feb 17, 2020 – Feb 18, 2020 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 nft: Drop pointless assignment

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")
---
 iptables/nft.c | 1 -
 1 file changed, 1 deletion(-)
iptables/nft.c +0 -1
index 806b77fed462b..2f0a8c4a772f7 100644
@@ -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);
 
Signature · 1 line
2.24.1
#1 lore raw
Quoted 2 lines · Phil Sutter

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.