Skip to content

Commit b141c24

Browse files
Jozsef Kadlecsikummakynes
authored andcommitted
netfilter: ipset: remove unused variable from type_pf_tdel()
Variable 'ret' is set in type_pf_tdel() but not used, remove. Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent 249ddc7 commit b141c24

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/linux/netfilter/ipset/ip_set_ahash.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ type_pf_tdel(struct ip_set *set, void *value, u32 timeout)
839839
struct htable *t = h->table;
840840
const struct type_pf_elem *d = value;
841841
struct hbucket *n;
842-
int i, ret = 0;
842+
int i;
843843
struct type_pf_elem *data;
844844
u32 key;
845845

@@ -850,7 +850,7 @@ type_pf_tdel(struct ip_set *set, void *value, u32 timeout)
850850
if (!type_pf_data_equal(data, d))
851851
continue;
852852
if (type_pf_data_expired(data))
853-
ret = -IPSET_ERR_EXIST;
853+
return -IPSET_ERR_EXIST;
854854
if (i != n->pos - 1)
855855
/* Not last one */
856856
type_pf_data_copy(data, ahash_tdata(n, n->pos - 1));

0 commit comments

Comments
 (0)