diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2002-06-02 03:43:24 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-06-02 03:43:24 -0700 |
| commit | 866559c19b5edb4166a85c41cc2a5a77846ad4f6 (patch) | |
| tree | fc188aa8f6cbc9efe521c18c1583c2bd3847075e /include/linux | |
| parent | 2a8ee63dde95f51ace9c6d5c2e1a43a148bc8ff1 (diff) | |
Allow <linux/list.h> to be used even without NULL defined yet.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/list.h | 4 |
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; } /** |
