diff options
author | Matthew Rosato <mjrosato@linux.ibm.com> | 2023-02-04 00:50:27 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2023-02-09 21:41:25 +0300 |
commit | b0d2d5697e4c12589ef536b2a824f6549fdb2c01 (patch) | |
tree | 33128ea8e7e609efc2024ccafe267de33c99594e /drivers/vfio/group.c | |
parent | 2b48f52f2bff8e8926165983f3a3d7b89b33de08 (diff) | |
download | linux-b0d2d5697e4c12589ef536b2a824f6549fdb2c01.tar.xz |
vfio: no need to pass kvm pointer during device open
Nothing uses this value during vfio_device_open anymore so it's safe
to remove it.
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Tested-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Link: https://lore.kernel.org/r/20230203215027.151988-3-mjrosato@linux.ibm.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/group.c')
-rw-r--r-- | drivers/vfio/group.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vfio/group.c b/drivers/vfio/group.c index 98621ac082f0..0e9036e2b9c4 100644 --- a/drivers/vfio/group.c +++ b/drivers/vfio/group.c @@ -187,7 +187,7 @@ static int vfio_device_group_open(struct vfio_device *device) if (device->open_count == 0) vfio_device_group_get_kvm_safe(device); - ret = vfio_device_open(device, device->group->iommufd, device->kvm); + ret = vfio_device_open(device, device->group->iommufd); if (device->open_count == 0) vfio_device_put_kvm(device); |