From: Mathieu Desnoyers Date: Thu, 7 Jul 2011 13:43:50 +0000 (-0400) Subject: rculfhash: cleanup X-Git-Tag: v0.7.0~43^2~217 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=479c8a32f3a1c319e9e1a18692b47992d393ee38;p=userspace-rcu.git rculfhash: cleanup Signed-off-by: Mathieu Desnoyers --- diff --git a/rculfhash.c b/rculfhash.c index 720fd01..5baa2d4 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -217,16 +217,14 @@ void _ht_gc_bucket(struct rcu_ht_node *dummy, struct rcu_ht_node *node) /* We can always skip the dummy node initially */ iter = rcu_dereference(iter_prev->next); assert(iter_prev->reverse_hash <= node->reverse_hash); - if (unlikely(!iter)) - return; for (;;) { + if (unlikely(!iter)) + return; if (clear_flag(iter)->reverse_hash > node->reverse_hash) return; next = rcu_dereference(clear_flag(iter)->next); if (is_removed(next)) break; - if (unlikely(!next)) - return; iter_prev = iter; iter = next; }