From 7673f2ab47fd47010d996a8d616e3b4d6b1fbfd6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 20 Mar 2014 22:59:26 +0100 Subject: [PATCH] list_compat.h: remove list_add_after() Signed-off-by: Felix Fietkau --- avl.c | 2 +- list_compat.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/avl.c b/avl.c index 545fd2a..b176936 100644 --- a/avl.c +++ b/avl.c @@ -491,7 +491,7 @@ avl_insert_before(struct avl_tree *tree, struct avl_node *pos_node, struct avl_n static void avl_insert_after(struct avl_tree *tree, struct avl_node *pos_node, struct avl_node *node) { - list_add_after(&pos_node->list, &node->list); + list_add(&node->list, &pos_node->list); tree->count++; } diff --git a/list_compat.h b/list_compat.h index 1357287..c61d754 100644 --- a/list_compat.h +++ b/list_compat.h @@ -17,7 +17,6 @@ #ifndef __LIST_COMPAT_H #define __LIST_COMPAT_H -#define list_add_after(_after, _list) list_add(_list, _after) #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)