From 5e4c6e4a9729e1ec546535cfc6ee264768c6b987 Mon Sep 17 00:00:00 2001 From: sabetts Date: Sat, 22 Feb 2003 21:58:01 +0000 Subject: (list_direction_entry): no longer returns NULL if there is only one element in the list. Instead, returns the same element again and again. --- src/linkedlist.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src') 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 { \ -- cgit v1.2.3