list_compat.h: remove list_add_head()

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2014-03-20 22:58:21 +01:00
parent d1e59653fa
commit fdcf117ff3
2 changed files with 1 additions and 2 deletions

2
avl.c
View file

@ -225,7 +225,7 @@ avl_insert(struct avl_tree *tree, struct avl_node *new)
new->leader = true; new->leader = true;
if (tree->root == NULL) { if (tree->root == NULL) {
list_add_head(&tree->list_head, &new->list); list_add(&new->list, &tree->list_head);
tree->root = new; tree->root = new;
tree->count = 1; tree->count = 1;
return 0; return 0;

View file

@ -17,7 +17,6 @@
#ifndef __LIST_COMPAT_H #ifndef __LIST_COMPAT_H
#define __LIST_COMPAT_H #define __LIST_COMPAT_H
#define list_add_head(_head, _list) list_add(_list, _head)
#define list_add_after(_after, _list) list_add(_list, _after) #define list_add_after(_after, _list) list_add(_list, _after)
#define list_add_before(_before, _list) list_add_tail(_list, _before) #define list_add_before(_before, _list) list_add_tail(_list, _before)
#define list_remove(_list) list_del(_list) #define list_remove(_list) list_del(_list)