diff options
author | Joe Perches <joe@perches.com> | 2015-03-31 01:46:09 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-03-31 18:05:09 +0200 |
commit | 1d804d079a92138d011900785193b6b00b44bc00 (patch) | |
tree | 4d683e8d6a9aacfad4e8b2e17c0f7aedc7837c18 /arch/x86/kvm/cpuid.h | |
parent | KVM: remove useless check of "ret" variable prior to returning the same value (diff) | |
download | linux-1d804d079a92138d011900785193b6b00b44bc00.tar.xz linux-1d804d079a92138d011900785193b6b00b44bc00.zip |
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) struct kvm_cpuid_entry2 *best; if (!static_cpu_has(X86_FEATURE_XSAVE)) - return 0; + return false; best = kvm_find_cpuid_entry(vcpu, 1, 0); return best && (best->ecx & bit(X86_FEATURE_XSAVE)); |