summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2002-06-02 03:43:24 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-06-02 03:43:24 -0700
commit866559c19b5edb4166a85c41cc2a5a77846ad4f6 (patch)
treefc188aa8f6cbc9efe521c18c1583c2bd3847075e /include/linux
parent2a8ee63dde95f51ace9c6d5c2e1a43a148bc8ff1 (diff)
Allow <linux/list.h> to be used even without NULL defined yet.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/list.h4
1 files changed, 2 insertions, 2 deletions
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;
}
/**