From: Mathieu Desnoyers Date: Mon, 19 Sep 2011 16:57:12 +0000 (-0400) Subject: rculfhash: Remove leftover assertions X-Git-Tag: v0.7.0~43^2~146 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1e4bfa28de3120feedc018145f47318ca6cf9f63;p=userspace-rcu.git rculfhash: Remove leftover assertions Signed-off-by: Mathieu Desnoyers --- diff --git a/rculfhash.c b/rculfhash.c index 09840f2..2ed570c 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -813,7 +813,6 @@ struct cds_lfht_node *_cds_lfht_add(struct cds_lfht *ht, new_next = flag_dummy(clear_flag(next)); else new_next = clear_flag(next); - assert(new_next != NULL); (void) uatomic_cmpxchg(&iter_prev->p.next, iter, new_next); /* retry */ } @@ -849,7 +848,6 @@ int _cds_lfht_remove(struct cds_lfht *ht, unsigned long size, assert(is_dummy(next)); else assert(!is_dummy(next)); - assert(next != NULL); old = uatomic_cmpxchg(&node->p.next, next, flag_removed(next)); } while (old != next);