summaryrefslogtreecommitdiff
path: root/src/linkedlist.h
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-02-22 21:58:01 +0000
committersabetts <sabetts>2003-02-22 21:58:01 +0000
commit5e4c6e4a9729e1ec546535cfc6ee264768c6b987 (patch)
tree851c432e2d5edf47da0f057d927d3021822d9354 /src/linkedlist.h
parent00a37f7479fc780669afd3ad82d938a1096952d0 (diff)
downloadratpoison-5e4c6e4a9729e1ec546535cfc6ee264768c6b987.zip
(list_direction_entry): no longer returns NULL
if there is only one element in the list. Instead, returns the same element again and again.
Diffstat (limited to 'src/linkedlist.h')
-rw-r--r--src/linkedlist.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/linkedlist.h b/src/linkedlist.h
index 4f07927..d36f07f 100644
--- a/src/linkedlist.h
+++ b/src/linkedlist.h
@@ -269,7 +269,6 @@ static inline void list_splice_init(struct list_head *list,
typeof(pos) ret = NULL; \
struct list_head *a_head = head; \
if (pos->member.direction == a_head) { \
- if (a_head->direction != &pos->member) \
ret = list_entry(a_head->direction, \
typeof(*pos), member); \
} else { \