[09/12] x86: cpu -- Drop no longer needed early exit from cpu_validate_features

Submitted by Cyrill Gorcunov on Aug. 30, 2018, 11 a.m.

Details

Message ID 20180830110027.12706-10-gorcunov@gmail.com
State Accepted
Series "x86: cpu -- Rework feature testing"
Headers show

Commit Message

Cyrill Gorcunov Aug. 30, 2018, 11 a.m.
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@gmail.com>
Reviewed-by: Dmitry Safonov <0x7f454c46@gmaill.com>
---
 criu/arch/x86/cpu.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/criu/arch/x86/cpu.c b/criu/arch/x86/cpu.c
index 1945a3dc31d5..a3f173b31c11 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
 
 		/*