call_rcu implementation: add missing static
[urcu.git] / rculfhash.c
index 40f6ff59be9b5427a64d9d4a9b07524a10fe7c6c..824a940391461a1a3b7f1db0a847be38e84dd741 100644 (file)
@@ -1273,7 +1273,7 @@ struct cds_lfht_node *cds_lfht_add_unique(struct cds_lfht *ht,
 
        size = rcu_dereference(ht->t.size);
        ret = _cds_lfht_add(ht, size, node, 1, 0);
-       if (ret != node)
+       if (ret == node)
                ht_count_add(ht, size);
        return ret;
 }
This page took 0.022526 seconds and 4 git commands to generate.