projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79904c9
)
KVM: x86: fix warning Using plain integer as NULL pointer
author
Hariprasad Kelam
<hariprasad.kelam@gmail.com>
Sat, 6 Apr 2019 09:36:58 +0000
(15:06 +0530)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 16 Apr 2019 13:38:07 +0000
(15:38 +0200)
Changed passing argument as "0 to NULL" which resolves below sparse warning
arch/x86/kvm/x86.c:3096:61: warning: Using plain integer as NULL pointer
Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index f10fef561573c4081f68a7a4d641208954572ee0..a0d1fc80ac5a8407c123d8df12eb2215d4d70392 100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-3095,7
+3095,7
@@
int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
break;
case KVM_CAP_NESTED_STATE:
r = kvm_x86_ops->get_nested_state ?
- kvm_x86_ops->get_nested_state(NULL,
0
, 0) : 0;
+ kvm_x86_ops->get_nested_state(NULL,
NULL
, 0) : 0;
break;
default:
break;