From 6c2ae3766a8cc59bf6903dcd60a559095f7655a4 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 19 Nov 2012 10:44:29 +1030 Subject: [PATCH] tal: neaten child property initialization. Don't open-code the list_head_init: left over from performance debugging. Signed-off-by: Rusty Russell --- ccan/tal/tal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ccan/tal/tal.c b/ccan/tal/tal.c index 32cfd043..9fed477f 100644 --- a/ccan/tal/tal.c +++ b/ccan/tal/tal.c @@ -317,8 +317,7 @@ static bool add_child(struct tal_hdr *parent, struct tal_hdr *child) children = add_child_property(parent, child); if (!children) return false; - children->group.list.n.next = children->group.list.n.prev - = &children->group.list.n; + list_head_init(&children->group.list); /* Child links to itself. */ child->next = child; -- 2.39.2