From: Mathieu Desnoyers Date: Tue, 13 Sep 2011 22:18:52 +0000 (-0400) Subject: rculfhash: remove verified TODOs X-Git-Tag: v0.7.0~43^2~151 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fc916688fc1976bd115567a50e2befd73a6d1555;p=userspace-rcu.git rculfhash: remove verified TODOs Signed-off-by: Mathieu Desnoyers --- diff --git a/rculfhash.c b/rculfhash.c index f95ef5d..c593cab 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -752,10 +752,8 @@ struct cds_lfht_node *_cds_lfht_add(struct cds_lfht *ht, iter = rcu_dereference(iter_prev->p.next); assert(iter_prev->p.reverse_hash <= node->p.reverse_hash); for (;;) { - /* TODO: check if removed */ if (unlikely(!clear_flag(iter))) goto insert; - /* TODO: check if removed */ if (likely(clear_flag(iter)->p.reverse_hash > node->p.reverse_hash)) goto insert; next = rcu_dereference(clear_flag(iter)->p.next);