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@xxxxxx> --- lib/ipset.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/ipset.c b/lib/ipset.c index 2e098e435d954..8e63af56d2a51 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) -- 2.38.0