diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-05-20 11:25:14 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-05-20 11:25:14 +0200 |
commit | 16ed481be9964a0062e81fbb333eb1c9e99a4b4e (patch) | |
tree | 50e954accd0afdfdac8e583df5aabcf5e321bfa7 /kernel | |
parent | 7e5b1073a11abb9e35c28f577b275779454a18df (diff) |
Remove variable 'ret' in type_pf_tdel(), which is set but not used
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/include/linux/netfilter/ipset/ip_set_ahash.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/include/linux/netfilter/ipset/ip_set_ahash.h b/kernel/include/linux/netfilter/ipset/ip_set_ahash.h index 95f6319..905e2ac 100644 --- a/kernel/include/linux/netfilter/ipset/ip_set_ahash.h +++ b/kernel/include/linux/netfilter/ipset/ip_set_ahash.h @@ -856,7 +856,7 @@ type_pf_tdel(struct ip_set *set, void *value, u32 timeout, u32 flags) struct htable *t = h->table; const struct type_pf_elem *d = value; struct hbucket *n; - int i, ret = 0; + int i; struct type_pf_elem *data; u32 key; @@ -867,7 +867,7 @@ type_pf_tdel(struct ip_set *set, void *value, u32 timeout, u32 flags) if (!type_pf_data_equal(data, d)) continue; if (type_pf_data_expired(data)) - ret = -IPSET_ERR_EXIST; + return -IPSET_ERR_EXIST; if (i != n->pos - 1) /* Not last one */ type_pf_data_copy(data, ahash_tdata(n, n->pos - 1)); |