aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2019-10-28 10:03:21 +1100
committerTimothy Arceri <[email protected]>2019-10-28 11:24:38 +0000
commit40258fb8b83325bf208876babf779e7ea08a870c (patch)
treece46b3e5d3d3b14d16f5f26427da0b42e93ece8e /src/util
parent255de06c5990797832678d7af01876a1afca5b50 (diff)
util: remove LIST_ADD macro
Just use the inlined function directly. The macro was replaced with the function in ebe304fa540f. Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/list.h1
-rw-r--r--src/util/u_queue.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/util/list.h b/src/util/list.h
index 69220c4fff0..cb66ae37be6 100644
--- a/src/util/list.h
+++ b/src/util/list.h
@@ -158,7 +158,6 @@ static inline void list_validate(const struct list_head *list)
assert(node->next->prev == node && node->prev->next == node);
}
-#define LIST_ADD(__item, __list) list_add(__item, __list)
#define LIST_REPLACE(__from, __to) list_replace(__from, __to)
#define LIST_DEL(__item) list_del(__item)
#define LIST_DELINIT(__item) list_delinit(__item)
diff --git a/src/util/u_queue.c b/src/util/u_queue.c
index 3a7fe4ab801..720c556f28a 100644
--- a/src/util/u_queue.c
+++ b/src/util/u_queue.c
@@ -77,7 +77,7 @@ add_to_atexit_list(struct util_queue *queue)
call_once(&atexit_once_flag, global_init);
mtx_lock(&exit_mutex);
- LIST_ADD(&queue->head, &queue_list);
+ list_add(&queue->head, &queue_list);
mtx_unlock(&exit_mutex);
}