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); } /**