From 7ae1be102877c2623d16ff72a2ef198de6c301fe Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 28 Oct 2019 09:49:39 +1100 Subject: util: remove LIST_INITHEAD macro Just use the inlined function directly. The macro was replaced with the function in ebe304fa540f. Reviewed-by: Eric Engestrom --- src/util/list.h | 1 - src/util/u_queue.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src/util') diff --git a/src/util/list.h b/src/util/list.h index 96e2f24695c..8b160f51f0b 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_INITHEAD(__item) list_inithead(__item) #define LIST_ADD(__item, __list) list_add(__item, __list) #define LIST_ADDTAIL(__item, __list) list_addtail(__item, __list) #define LIST_REPLACE(__from, __to) list_replace(__from, __to) diff --git a/src/util/u_queue.c b/src/util/u_queue.c index 47b8dcd407c..3a7fe4ab801 100644 --- a/src/util/u_queue.c +++ b/src/util/u_queue.c @@ -67,7 +67,7 @@ atexit_handler(void) static void global_init(void) { - LIST_INITHEAD(&queue_list); + list_inithead(&queue_list); atexit(atexit_handler); } -- cgit v1.2.3