From d1e59653fa6c7599320155ca7acb92f457f60fa6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 20 Mar 2014 22:56:31 +0100 Subject: [PATCH] list_compat.h: remove list_init_head() Signed-off-by: Felix Fietkau --- avl.c | 2 +- avl.h | 2 +- list_compat.h | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/avl.c b/avl.c index 3efeaf5..91b2bb8 100644 --- a/avl.c +++ b/avl.c @@ -90,7 +90,7 @@ static void avl_remove(struct avl_tree *tree, struct avl_node *node); void avl_init(struct avl_tree *tree, avl_tree_comp comp, bool allow_dups, void *ptr) { - list_init_head(&tree->list_head); + INIT_LIST_HEAD(&tree->list_head); tree->root = NULL; tree->count = 0; tree->comp = comp; diff --git a/avl.h b/avl.h index 2591de3..8323246 100644 --- a/avl.h +++ b/avl.h @@ -534,7 +534,7 @@ __avl_find_element(const struct avl_tree *tree, const void *key, size_t offset, #define avl_remove_all_elements(tree, element, node_member, ptr) \ for (element = avl_first_element(tree, element, node_member), \ ptr = avl_next_element(element, node_member), \ - list_init_head(&(tree)->list_head), \ + INIT_LIST_HEAD(&(tree)->list_head), \ (tree)->root = NULL; \ (tree)->count > 0; \ element = ptr, ptr = avl_next_element(ptr, node_member), (tree)->count--) diff --git a/list_compat.h b/list_compat.h index bfa12c1..3dd1fd6 100644 --- a/list_compat.h +++ b/list_compat.h @@ -17,7 +17,6 @@ #ifndef __LIST_COMPAT_H #define __LIST_COMPAT_H -#define list_init_head(_list) INIT_LIST_HEAD(_list) #define list_add_head(_head, _list) list_add(_list, _head) #define list_add_after(_after, _list) list_add(_list, _after) #define list_add_before(_before, _list) list_add_tail(_list, _before)