summaryrefslogtreecommitdiff
path: root/bsd-core
diff options
context:
space:
mode:
authorRobert Noland <rnoland@2hip.net>2008-10-09 22:13:26 -0400
committerRobert Noland <rnoland@2hip.net>2008-10-09 22:13:26 -0400
commit1150a42d4398b14c5db2f34a5beba613528df147 (patch)
tree4cbb48774942c4acd53399b71ff0e3b7f406f840 /bsd-core
parenta8f73c214dc2accee12d84b85d37fb498ab3adad (diff)
[FreeBSD] Fix linux list compat list_for_each_safe()
linux_for_each_safe would not handle lists with a single entry.
Diffstat (limited to 'bsd-core')
-rw-r--r--bsd-core/drm_linux_list.h4
1 files changed, 2 insertions, 2 deletions
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)