rculfhash: cleanup
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 7 Jul 2011 13:43:50 +0000 (09:43 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 7 Jul 2011 13:43:50 +0000 (09:43 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rculfhash.c

index 720fd0151e20ce70b31b4d5a4012f4ae2d123592..5baa2d415b34483486ece296cb9c511ae2cf0714 100644 (file)
@@ -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;
                }
This page took 0.027095 seconds and 4 git commands to generate.