diff --git a/include/linux/list.h b/include/linux/list.h index feb773c..2e92b3f 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -3,7 +3,6 @@ #include #include -#include #include #include @@ -105,8 +104,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 = LIST_POISON1; - entry->prev = LIST_POISON2; + entry->next = NULL; + entry->prev = NULL; } #else extern void __list_del_entry(struct list_head *entry); @@ -623,8 +622,8 @@ static inline void __hlist_del(struct hlist_node *n) static inline void hlist_del(struct hlist_node *n) { __hlist_del(n); - n->next = LIST_POISON1; - n->pprev = LIST_POISON2; + n->next = NULL; + n->pprev = NULL; } static inline void hlist_del_init(struct hlist_node *n)