From 5f4f4ed045fa84c65380bdc5556c81a765ebab86 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 22 Feb 2023 17:53:45 +0100 Subject: 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 --- lib/ipset.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib') 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) -- cgit v1.2.1