aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/s390/kvm/kvm_virtio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c
index 83c69fbc43fc..3c2c923d5c0a 100644
--- a/drivers/s390/kvm/kvm_virtio.c
+++ b/drivers/s390/kvm/kvm_virtio.c
@@ -334,10 +334,10 @@ static void scan_devices(void)
334 */ 334 */
335static int match_desc(struct device *dev, void *data) 335static int match_desc(struct device *dev, void *data)
336{ 336{
337 if ((ulong)to_kvmdev(dev_to_virtio(dev))->desc == (ulong)data) 337 struct virtio_device *vdev = dev_to_virtio(dev);
338 return 1; 338 struct kvm_device *kdev = to_kvmdev(vdev);
339 339
340 return 0; 340 return kdev->desc == data;
341} 341}
342 342
343/* 343/*