mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 16:28:08 +02:00
util: remove LIST_REPLACE macro
Just use the inlined function directly. The macro was replaced with
the function in ebe304fa54.
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
This commit is contained in:
parent
40258fb8b8
commit
d23d47c065
2 changed files with 1 additions and 2 deletions
|
|
@ -275,7 +275,7 @@ debug_realloc(const char *file, unsigned line, const char *function,
|
|||
new_ftr->magic = DEBUG_MEMORY_MAGIC;
|
||||
|
||||
mtx_lock(&list_mutex);
|
||||
LIST_REPLACE(&old_hdr->head, &new_hdr->head);
|
||||
list_replace(&old_hdr->head, &new_hdr->head);
|
||||
mtx_unlock(&list_mutex);
|
||||
|
||||
/* copy data */
|
||||
|
|
|
|||
|
|
@ -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_REPLACE(__from, __to) list_replace(__from, __to)
|
||||
#define LIST_DEL(__item) list_del(__item)
|
||||
#define LIST_DELINIT(__item) list_delinit(__item)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue