X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=rculfhash.c;h=2ed570c7f5d1f6856bea7d23312c95a7e6ad1354;hp=09840f2f75694529c17ab2ede16be0ec3b475bda;hb=1e4bfa28de3120feedc018145f47318ca6cf9f63;hpb=dc1da8f6d538b4b56326617b391182f6bec36b59 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);