aboutsummaryrefslogtreecommitdiff
path: root/src/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/list.h b/src/list.h
index db7e962..0f0909b 100644
--- a/src/list.h
+++ b/src/list.h
@@ -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)