diff options
author | Phil Sutter <phil@nwl.cc> | 2023-02-22 17:53:45 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-03-10 13:16:51 +0100 |
commit | 5f4f4ed045fa84c65380bdc5556c81a765ebab86 (patch) | |
tree | 6bc17a5a5c66566db0e05c7bd374fa102d26b06c /lib | |
parent | 37f187b1b89a9f40688d9f3b209d6f4df5167c43 (diff) |
xlate: Drop dead code
Set type is not needed when manipulating elements, the assigned
variable was unused in that case.
Fixes: 325af556cd3a6 ("add ipset to nftables translation infrastructure")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ipset.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/ipset.c b/lib/ipset.c index 2e098e4..8e63af5 100644 --- a/lib/ipset.c +++ b/lib/ipset.c @@ -1876,9 +1876,6 @@ static int ipset_xlate(struct ipset *ipset, enum ipset_cmd cmd, cmd == IPSET_CMD_DEL ? "delete" : "get", ipset_xlate_family(family), table, set); - typename = ipset_data_get(data, IPSET_OPT_TYPENAME); - type = ipset_xlate_set_type(typename); - xlate_set = (struct ipset_xlate_set *) ipset_xlate_set_get(ipset, set); if (xlate_set && xlate_set->interval) |