OSDN Git Service

kvm: vmx: fix coccinelle warnings
authorYi Wang <wang.yi59@zte.com.cn>
Mon, 15 Jul 2019 04:35:17 +0000 (12:35 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Jul 2019 11:55:34 +0000 (13:55 +0200)
commit9481b7f10c5a7f149048310c25510f0386eb6631
tree532ce322736fb1874e5a63406a18a85bafadae88
parentfd4198bf17ca9321fb8043e846b780cfd2889dac
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>
arch/x86/kvm/vmx/vmx.c