summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorYi Wang2019-07-15 06:35:17 +0200
committerPaolo Bonzini2019-07-15 13:55:34 +0200
commit9481b7f10c5a7f149048310c25510f0386eb6631 (patch)
tree532ce322736fb1874e5a63406a18a85bafadae88 /arch/x86/kvm
parentMerge tag 'kvm-s390-next-5.3-1' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadkernel-qcow2-linux-9481b7f10c5a7f149048310c25510f0386eb6631.tar.gz
kernel-qcow2-linux-9481b7f10c5a7f149048310c25510f0386eb6631.tar.xz
kernel-qcow2-linux-9481b7f10c5a7f149048310c25510f0386eb6631.zip
kvm: vmx: fix coccinelle warnings
This fixes the following coccinelle warning: WARNING: return of 0/1 in function 'vmx_need_emulation_on_page_fault' with return type bool Return false instead of 0. Signed-off-by: Yi Wang <wang.yi59@zte.com.cn> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/vmx/vmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
index 69536553446d..84f8d49a2fd2 100644
--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@ -7453,7 +7453,7 @@ static int enable_smi_window(struct kvm_vcpu *vcpu)
static bool vmx_need_emulation_on_page_fault(struct kvm_vcpu *vcpu)
{
- return 0;
+ return false;
}
static __init int hardware_setup(void)