[CRIU] [PATCH 2/5] opt: cpu-cap -- Use else if statement when walking over options
Cyrill Gorcunov
gorcunov at openvz.org
Mon Sep 8 14:39:37 PDT 2014
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
crtools.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crtools.c b/crtools.c
index 1c31392d50aa..c08b57c1224e 100644
--- a/crtools.c
+++ b/crtools.c
@@ -109,7 +109,7 @@ static int parse_cpu_cap(struct cr_options *opts, const char *optarg)
if (!strncmp(optarg, "fpu", 3))
____cpu_set_cap(opts, CPU_CAP_FPU, inverse);
- if (!strncmp(optarg, "all", 3))
+ else if (!strncmp(optarg, "all", 3))
____cpu_set_cap(opts, CPU_CAP_ALL, inverse);
else
goto Esyntax;
--
1.9.3
More information about the CRIU
mailing list