list_compat.h: remove list_add_before()
authorFelix Fietkau <nbd@openwrt.org>
Thu, 20 Mar 2014 22:00:24 +0000 (23:00 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 20 Mar 2014 22:00:24 +0000 (23:00 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
avl.c
list_compat.h

diff --git a/avl.c b/avl.c
index b1769368a483854ab2abeb570d20e5cbc13dc61d..f17dab5e354b0c4566ff69022a02cdb2ce20f56e 100644 (file)
--- a/avl.c
+++ b/avl.c
@@ -484,7 +484,7 @@ post_insert(struct avl_tree *tree, struct avl_node *node)
 static void
 avl_insert_before(struct avl_tree *tree, struct avl_node *pos_node, struct avl_node *node)
 {
-  list_add_before(&pos_node->list, &node->list);
+  list_add_tail(&node->list, &pos_node->list);
   tree->count++;
 }
 
index c61d7542aa95a7e5b7f9f61cbc5554227a31ef9d..93298207f7143db476025b1e3c670b128530efb3 100644 (file)
@@ -17,7 +17,6 @@
 #ifndef __LIST_COMPAT_H
 #define __LIST_COMPAT_H
 
-#define list_add_before(_before, _list)                list_add_tail(_list, _before)
 #define list_remove(_list)                     list_del(_list)
 #define list_is_empty(_list)                   list_empty(_list)
 #define list_next_element(_element, _member)   list_entry((_element)->_member.next, typeof(*(_element)), _member)