]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: nVMX: kmap() can't fail
authorDavid Hildenbrand <david@redhat.com>
Fri, 23 Feb 2018 10:42:14 +0000 (11:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:03:54 +0000 (11:03 +0100)
commite7a3bc31dc0841ff5c3fc544edd94824a8b13b18
tree9c9d6a538eab9dee551bccc880696d34d1bb037c
parentfd94ae98d2dd6883ed8c7948dcbb48867894045d
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>
[jwang: port to 4.4]
Signed-off-by: Jack Wang <jinpu.wang@profitbricks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx.c