OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd4198b
)
kvm: vmx: fix coccinelle warnings
author
Yi Wang
<wang.yi59@zte.com.cn>
Mon, 15 Jul 2019 04:35:17 +0000
(12:35 +0800)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 15 Jul 2019 11:55:34 +0000
(13:55 +0200)
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
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/vmx/vmx.c
b/arch/x86/kvm/vmx/vmx.c
index
6953655
..
84f8d49
100644
(file)
--- 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)