[CRIU] [PATCH 07/15] opt: cpu-cap -- Use else if statement when walking over options

Cyrill Gorcunov gorcunov at openvz.org
Fri Sep 19 07:03:09 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 b8f73060222f..d98bc7e5aeac 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