diff options
author | 2008-10-15 22:04:18 +0000 | |
---|---|---|
committer | 2008-10-15 22:04:18 +0000 | |
commit | baf18a12d7ddf8ffa4119195459665dbd1ae22e9 (patch) | |
tree | 72c30b88b32f845efb8b23d6b8deb3c7c430d7b9 /sys | |
parent | Second pass of simple timeout_add -> timeout_add_sec conversions (diff) | |
download | wireguard-openbsd-baf18a12d7ddf8ffa4119195459665dbd1ae22e9.tar.xz wireguard-openbsd-baf18a12d7ddf8ffa4119195459665dbd1ae22e9.zip |
Fix list_for_each_safe compat marco. It currently skips the last entry.
From Robert Noland at FreeBSD.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/drm_linux_list.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/drm_linux_list.h b/sys/dev/pci/drm/drm_linux_list.h index c9f1b3e18c9..7c6a447409f 100644 --- a/sys/dev/pci/drm/drm_linux_list.h +++ b/sys/dev/pci/drm/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) |