diff options
author | Joe Perches <joe@perches.com> | 2015-03-30 19:46:09 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-03-31 12:05:09 -0400 |
commit | 1d804d079a92138d011900785193b6b00b44bc00 (patch) | |
tree | 4d683e8d6a9aacfad4e8b2e17c0f7aedc7837c18 /arch/x86/kvm/cpuid.h | |
parent | 2f729b10bb74f97797beb310113f6182f262d36a (diff) |
x86: Use bool function return values of true/false not 1/0
Use the normal return values for bool functions
Signed-off-by: Joe Perches <joe@perches.com>
Message-Id: <9f593eb2f43b456851cd73f7ed09654ca58fb570.1427759009.git.joe@perches.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/cpuid.h')
-rw-r--r-- | arch/x86/kvm/cpuid.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/cpuid.h b/arch/x86/kvm/cpuid.h index 4452eedfaedd..26228466f3f8 100644 --- a/arch/x86/kvm/cpuid.h +++ b/arch/x86/kvm/cpuid.h | |||
@@ -26,7 +26,7 @@ static inline bool guest_cpuid_has_xsave(struct kvm_vcpu *vcpu) | |||
26 | struct kvm_cpuid_entry2 *best; | 26 | struct kvm_cpuid_entry2 *best; |
27 | 27 | ||
28 | if (!static_cpu_has(X86_FEATURE_XSAVE)) | 28 | if (!static_cpu_has(X86_FEATURE_XSAVE)) |
29 | return 0; | 29 | return false; |
30 | 30 | ||
31 | best = kvm_find_cpuid_entry(vcpu, 1, 0); | 31 | best = kvm_find_cpuid_entry(vcpu, 1, 0); |
32 | return best && (best->ecx & bit(X86_FEATURE_XSAVE)); | 32 | return best && (best->ecx & bit(X86_FEATURE_XSAVE)); |