From: Rusty Russell Date: Mon, 19 Nov 2012 00:14:29 +0000 (+1030) Subject: tal: neaten child property initialization. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=6c2ae3766a8cc59bf6903dcd60a559095f7655a4 tal: neaten child property initialization. Don't open-code the list_head_init: left over from performance debugging. Signed-off-by: Rusty Russell --- 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;