diff options
author | Timothy Arceri <[email protected]> | 2019-10-28 09:49:39 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2019-10-28 11:24:38 +0000 |
commit | 7ae1be102877c2623d16ff72a2ef198de6c301fe (patch) | |
tree | eaaea8484ea30be97dd6a4c62b186dfc8b583a5a /src/util | |
parent | 15e7f942787eda5dbf94ec2e03fe3074e3e11fd4 (diff) |
util: remove LIST_INITHEAD 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.h | 1 | ||||
-rw-r--r-- | src/util/u_queue.c | 2 |
2 files changed, 1 insertions, 2 deletions
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); } |