Skip to content

Commit

Permalink
ls: simplify the judgment condition when list active containers
Browse files Browse the repository at this point in the history
Signed-off-by: 0x0916 <w@laoqinren.net>
  • Loading branch information
0x0916 authored and stgraber committed Apr 17, 2017
1 parent 016c592 commit 34b8792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/tools/lxc_ls.c
Expand Up @@ -356,7 +356,7 @@ static int ls_get(struct ls **m, size_t *size, const struct lxc_arguments *args,
}

/* Do not do more work than is necessary right from the start. */
if (args->ls_active || (args->ls_active && args->ls_frozen))
if (args->ls_active || args->ls_frozen)
num = list_active_containers(path, &containers, NULL);
else
num = list_all_containers(path, &containers, NULL);
Expand Down

0 comments on commit 34b8792

Please sign in to comment.