Commit 6c2ae376 authored by Rusty Russell's avatar Rusty Russell

tal: neaten child property initialization.

Don't open-code the list_head_init: left over from performance
debugging.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent f001ce92
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment