OSDN Git Service

KVM: PPC: Book3S: Remove useless checks in 'release' method of KVM device
authorCédric Le Goater <clg@kaod.org>
Thu, 9 May 2019 12:33:44 +0000 (14:33 +0200)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 14 May 2019 02:06:03 +0000 (12:06 +1000)
commit4894fbcce856635c9ab79f44e50826e86bb92110
tree30635bbe00a4dd179dd60c63075c8c5bacd25f8e
parent3f8cb76c80073912173406a3dd7670194c1a4003
KVM: PPC: Book3S: Remove useless checks in 'release' method of KVM device

There is no need to test for the device pointer validity when releasing
a KVM device. The file descriptor should identify it safely.

Fixes: 2bde9b3ec8bd ("KVM: Introduce a 'release' method for KVM devices")
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
virt/kvm/kvm_main.c