]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
nft: Drop pointless assignment
authorPhil Sutter <phil@nwl.cc>
Mon, 17 Feb 2020 11:56:24 +0000 (12:56 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 18 Feb 2020 16:03:36 +0000 (17:03 +0100)
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

index 806b77fed462ba04aa7a4991fb368812f7acade4..2f0a8c4a772f73b45be4ce5c8b5133b8fb5bbd86 100644 (file)
@@ -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);