KVM: x86: fix warning Using plain integer as NULL pointer
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Sat, 6 Apr 2019 09:36:58 +0000 (15:06 +0530)
committerPaolo 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

index f10fef5..a0d1fc8 100644 (file)
@@ -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;