projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rculfhash: remove unneeded clear_flag()
[urcu.git]
/
rculfhash.c
diff --git
a/rculfhash.c
b/rculfhash.c
index 1eda2dd858981477041fcdcee252c78d224127c2..c1ff314bc0d5cc748e1329d8508f72641ae804ad 100644
(file)
--- a/
rculfhash.c
+++ b/
rculfhash.c
@@
-779,9
+779,9
@@
int _cds_lfht_replace(struct cds_lfht *ht, unsigned long size,
*/
return -ENOENT;
}
*/
return -ENOENT;
}
- assert(
!is_bucket
(old_next));
- assert(new_node !=
clear_flag(old_next)
);
- new_node->next =
clear_flag(old_next)
;
+ assert(
old_next == clear_flag
(old_next));
+ assert(new_node !=
old_next
);
+ new_node->next =
old_next
;
/*
* Here is the whole trick for lock-free replace: we add
* the replacement node _after_ the node we want to
/*
* Here is the whole trick for lock-free replace: we add
* the replacement node _after_ the node we want to
This page took
0.022729 seconds
and
4
git commands to generate.