]> git.neil.brown.name Git - history.git/commitdiff
Allow <linux/list.h> to be used even without NULL defined yet.
authorLinus Torvalds <torvalds@home.transmeta.com>
Sun, 2 Jun 2002 10:43:24 +0000 (03:43 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 2 Jun 2002 10:43:24 +0000 (03:43 -0700)
include/linux/list.h

index 6331739453a045525bfed8b7c3b779e71dab800b..f6ea9d2d9f25c4cc0ec0feb9d43552fde982cb3e 100644 (file)
@@ -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;
 }
 
 /**