From bda05b6876ec3d4dc97fc3c80cda841634523bb7 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 21 Nov 2012 23:18:18 +0000 Subject: [PATCH] - Make it possible for nodes which have been delinked to be linked to other lists. --- include/list.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/list.h b/include/list.h index 6230e5525..2d45eca1e 100644 --- a/include/list.h +++ b/include/list.h @@ -113,9 +113,8 @@ static inline void __list_del_entry(struct list_head *entry) static inline void list_del(struct list_head *entry) { - __list_del(entry->prev, entry->next); - entry->next = NULL; - entry->prev = NULL; + __list_del_entry(entry); + INIT_LIST_HEAD(entry); } /**