From 1e4bfa28de3120feedc018145f47318ca6cf9f63 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 19 Sep 2011 12:57:12 -0400 Subject: [PATCH] rculfhash: Remove leftover assertions Signed-off-by: Mathieu Desnoyers --- rculfhash.c | 2 -- 1 file changed, 2 deletions(-) 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); -- 2.34.1