ck_queue: fix logic inversion in CK_STAILQ_CONCAT.

STAILQ_CONCAT transcription error lead to inversion of logic. It would only work for empty lists.
cos
Aidan Cully 7 years ago committed by Samy Al Bahra
parent 3b86f1a4fd
commit 5f6834b693

@ -235,7 +235,7 @@ struct { \
* Singly-linked Tail queue functions. * Singly-linked Tail queue functions.
*/ */
#define CK_STAILQ_CONCAT(head1, head2) do { \ #define CK_STAILQ_CONCAT(head1, head2) do { \
if ((head2)->stqh_first == NULL) { \ if ((head2)->stqh_first != NULL) { \
ck_pr_store_ptr((head1)->stqh_last, (head2)->stqh_first); \ ck_pr_store_ptr((head1)->stqh_last, (head2)->stqh_first); \
ck_pr_fence_store(); \ ck_pr_fence_store(); \
(head1)->stqh_last = (head2)->stqh_last; \ (head1)->stqh_last = (head2)->stqh_last; \

Loading…
Cancel
Save