From: Phil Sutter Date: Wed, 22 Feb 2023 16:53:45 +0000 (+0100) Subject: xlate: Drop dead code X-Git-Tag: v7.18~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f4f4ed045fa84c65380bdc5556c81a765ebab86;p=thirdparty%2Fipset.git 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 --- diff --git a/lib/ipset.c b/lib/ipset.c index 2e098e43..8e63af56 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)