ls: simplify the judgment condition when list active containers

Signed-off-by: 0x0916 <w@laoqinren.net>
This commit is contained in:
0x0916 2017-04-16 10:34:08 +08:00
parent b4f185c70d
commit 045e2de34a

View File

@ -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);