mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-06 19:00:25 +01:00
[FreeBSD] Fix linux list compat list_for_each_safe()
linux_for_each_safe would not handle lists with a single entry.
This commit is contained in:
parent
a8f73c214d
commit
1150a42d43
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue