[CRIU] [PATCH 9/9] x86: cpu -- Drop no longer needed early exit from cpu_validate_features

Cyrill Gorcunov gorcunov at gmail.com
Tue Aug 7 19:35:17 MSK 2018


Since now validation is bit based there is no longer need to
exit early if fpu matches, we rather need over all possible
options where several capability modes can be set.

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 criu/arch/x86/cpu.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/criu/arch/x86/cpu.c b/criu/arch/x86/cpu.c
index 6fe6ace6a198..b57d55e9f077 100644
--- a/criu/arch/x86/cpu.c
+++ b/criu/arch/x86/cpu.c
@@ -258,8 +258,7 @@ static int cpu_validate_features(compel_cpuinfo_t *cpu_info)
 			       __mismatch_fpu_bit(X86_FEATURE_OSXSAVE),
 			       __mismatch_fpu_bit(X86_FEATURE_XSAVES));
 			return -1;
-		} else
-			return 0;
+		}
 #undef __mismatch_fpu_bit
 
 		/*
-- 
2.14.4



More information about the CRIU mailing list