From 866559c19b5edb4166a85c41cc2a5a77846ad4f6 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 2 Jun 2002 03:43:24 -0700 Subject: Allow to be used even without NULL defined yet. --- include/linux/list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/linux') diff --git a/include/linux/list.h b/include/linux/list.h index 6331739453a0..f6ea9d2d9f25 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -94,8 +94,8 @@ static __inline__ void __list_del(struct list_head * prev, static __inline__ void list_del(struct list_head *entry) { __list_del(entry->prev, entry->next); - entry->next = NULL; - entry->prev = NULL; + entry->next = (void *) 0; + entry->prev = (void *) 0; } /** -- cgit v1.2.3