KVM: nVMX: kmap() can't fail
authorDavid Hildenbrand <david@redhat.com>
Wed, 25 Jan 2017 10:58:57 +0000 (11:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Feb 2018 11:36:01 +0000 (12:36 +0100)
commit19b1d4bdfe5ce543e54292fb1a45c7300398e6aa
tree2091ab4df5610efa5a15d61c1fd98acac8a83d2d
parent34900390e96663cfe5c23e254baaf49664be8836
KVM: nVMX: kmap() can't fail

commit 42cf014d38d8822cce63703a467e00f65d000952 upstream.

kmap() can't fail, therefore it will always return a valid pointer. Let's
just get rid of the unnecessary checks.

Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx.c