summaryrefslogtreecommitdiff
path: root/include/ck_queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ck_queue.h')
-rw-r--r--include/ck_queue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ck_queue.h b/include/ck_queue.h
index 0b7ce1aec708..28b298e6d9a3 100644
--- a/include/ck_queue.h
+++ b/include/ck_queue.h
@@ -235,7 +235,7 @@ struct { \
* Singly-linked Tail queue functions.
*/
#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_fence_store(); \
(head1)->stqh_last = (head2)->stqh_last; \