From 1150a42d4398b14c5db2f34a5beba613528df147 Mon Sep 17 00:00:00 2001 From: Robert Noland Date: Thu, 9 Oct 2008 22:13:26 -0400 Subject: [FreeBSD] Fix linux list compat list_for_each_safe() linux_for_each_safe would not handle lists with a single entry. --- bsd-core/drm_linux_list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bsd-core/drm_linux_list.h') diff --git a/bsd-core/drm_linux_list.h b/bsd-core/drm_linux_list.h index c9f1b3e1..7c6a4474 100644 --- a/bsd-core/drm_linux_list.h +++ b/bsd-core/drm_linux_list.h @@ -66,6 +66,6 @@ list_del(struct list_head *entry) { #define list_for_each_safe(entry, temp, head) \ for (entry = (head)->next, temp = (entry)->next; \ - temp != head; \ - entry = temp, temp = temp->next) + entry != head; \ + entry = temp, temp = entry->next) -- cgit v1.2.3