Commit 13a628df authored by Pavel Emelyanov's avatar Pavel Emelyanov

collect: Clean children collect code variables usage

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 009c173b
......@@ -800,7 +800,6 @@ static int get_children(struct pstree_item *item)
{
pid_t *ch;
int ret, i, nr_children, nr_inprogress;
struct pstree_item *c;
ret = parse_children(item->pid.real, &ch, &nr_children);
if (ret < 0)
......@@ -808,6 +807,7 @@ static int get_children(struct pstree_item *item)
nr_inprogress = 0;
for (i = 0; i < nr_children; i++) {
struct pstree_item *c;
pid_t pid = ch[i];
/* Is it already frozen? */
......@@ -838,7 +838,7 @@ static int get_children(struct pstree_item *item)
continue;
}
c->pid.real = ch[i];
c->pid.real = pid;
c->parent = item;
c->state = ret;
list_add_tail(&c->sibling, &item->children);
......
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