Skip to content

Commit be43c44

Browse files
Hariprasad Kelambonzini
authored andcommitted
KVM: x86: fix warning Using plain integer as NULL pointer
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>
1 parent 79904c9 commit be43c44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/x86.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3095,7 +3095,7 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
30953095
break;
30963096
case KVM_CAP_NESTED_STATE:
30973097
r = kvm_x86_ops->get_nested_state ?
3098-
kvm_x86_ops->get_nested_state(NULL, 0, 0) : 0;
3098+
kvm_x86_ops->get_nested_state(NULL, NULL, 0) : 0;
30993099
break;
31003100
default:
31013101
break;

0 commit comments

Comments
 (0)