list_compat.h: remove list_remove()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
f5e105b603
commit
97ec6311f2
2 changed files with 1 additions and 2 deletions
2
avl.c
2
avl.c
|
@ -498,7 +498,7 @@ avl_insert_after(struct avl_tree *tree, struct avl_node *pos_node, struct avl_no
|
||||||
static void
|
static void
|
||||||
avl_remove(struct avl_tree *tree, struct avl_node *node)
|
avl_remove(struct avl_tree *tree, struct avl_node *node)
|
||||||
{
|
{
|
||||||
list_remove(&node->list);
|
list_del(&node->list);
|
||||||
tree->count--;
|
tree->count--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#ifndef __LIST_COMPAT_H
|
#ifndef __LIST_COMPAT_H
|
||||||
#define __LIST_COMPAT_H
|
#define __LIST_COMPAT_H
|
||||||
|
|
||||||
#define list_remove(_list) list_del(_list)
|
|
||||||
#define list_is_empty(_list) list_empty(_list)
|
#define list_is_empty(_list) list_empty(_list)
|
||||||
#define list_next_element(_element, _member) list_entry((_element)->_member.next, typeof(*(_element)), _member)
|
#define list_next_element(_element, _member) list_entry((_element)->_member.next, typeof(*(_element)), _member)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue