]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xshared: struct xt_cmd_parse::xlate is unused
authorPhil Sutter <phil@nwl.cc>
Sun, 19 Nov 2023 12:18:26 +0000 (13:18 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 23 Nov 2023 16:59:42 +0000 (17:59 +0100)
Drop the boolean, it was meant to disable some existence checks in
do_parse() prior to the caching rework. Now that do_parse() runs before
any caching is done, the checks in question don't exist anymore so drop
this relict.

Fixes: a7f1e208cdf9c ("nft: split parsing from netlink commands")
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/xshared.h
iptables/xtables-translate.c

index 5586385456a4db47788aab0cb33e752119f3a1fa..c77556a1987dc7015835a63008cc1ee9cc8e50bc 100644 (file)
@@ -284,7 +284,6 @@ struct xt_cmd_parse {
        bool                            restore;
        int                             line;
        int                             verbose;
-       bool                            xlate;
        struct xt_cmd_parse_ops         *ops;
 };
 
index ea9dce204dfc94575b06ac3b6566df32d3c3f2b6..ad443112303231d74c786fe865bd6c070dd13b90 100644 (file)
@@ -259,7 +259,6 @@ static int do_command_xlate(struct nft_handle *h, int argc, char *argv[],
                .table          = *table,
                .restore        = restore,
                .line           = line,
-               .xlate          = true,
                .ops            = &h->ops->cmd_parse,
        };
        struct iptables_command_state cs = {