]> git.ipfire.org Git - thirdparty/ipset.git/commitdiff
xlate: Drop dead code
authorPhil Sutter <phil@nwl.cc>
Wed, 22 Feb 2023 16:53:45 +0000 (17:53 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 10 Mar 2023 12:16:51 +0000 (13:16 +0100)
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>
lib/ipset.c

index 2e098e435d954d44beac0f86e55ff52b93146e4f..8e63af56d2a5149569f4a33ad8db09deed29e368 100644 (file)
@@ -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)