]> granicus.if.org Git - ipset/commitdiff
Remove variable 'ret' in type_pf_tdel(), which is set but not used
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 20 May 2011 09:25:14 +0000 (11:25 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 20 May 2011 09:25:14 +0000 (11:25 +0200)
kernel/include/linux/netfilter/ipset/ip_set_ahash.h

index 95f63195f5e3fdde0b67dfc58e77ed17588b50cd..905e2ac32dafaed85d23595b092e82217005ac47 100644 (file)
@@ -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));