diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-06-13 20:44:09 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-06-13 20:47:28 -0400 |
commit | 9539e41c4d8701c19434457288c38109da163ffc (patch) | |
tree | 90c36535e01057f841cebcc27fd5447107ec3bf8 | |
parent | 59c21627c9d987d244a640dd451f860e1eacf764 (diff) | |
download | seabios-hppa-9539e41c4d8701c19434457288c38109da163ffc.zip seabios-hppa-9539e41c4d8701c19434457288c38109da163ffc.tar.gz seabios-hppa-9539e41c4d8701c19434457288c38109da163ffc.tar.bz2 |
Fix error in hlist_for_each_entry_safe macro.
Fix broken macro - it did not work correctly at all.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | src/list.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -68,8 +68,7 @@ hlist_add_after(struct hlist_node *n, struct hlist_node *prev) #define hlist_for_each_entry_safe(pos, pprev, head, member) \ for (pprev = &(head)->first \ - ; *pprev \ - && ({ pos=container_of((*pprev)->next, typeof(*pos), member); 1; }) \ + ; *pprev && ({ pos=container_of(*pprev, typeof(*pos), member); 1; }) \ ; pprev = &(*pprev)->next) |