From 045e2de34a9e142d9b7de2dda2cb2932554d68aa Mon Sep 17 00:00:00 2001 From: 0x0916 Date: Sun, 16 Apr 2017 10:34:08 +0800 Subject: [PATCH] ls: simplify the judgment condition when list active containers Signed-off-by: 0x0916 --- src/lxc/tools/lxc_ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/tools/lxc_ls.c b/src/lxc/tools/lxc_ls.c index 363d3d26b..63053b110 100644 --- a/src/lxc/tools/lxc_ls.c +++ b/src/lxc/tools/lxc_ls.c @@ -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);