vfio/mdev: Removed unused kref
Remove unused kref from the mdev_device structure.
Fixes: 7b96953bc6
("vfio: Mediated device Core driver")
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Kirti Wankhede <kwankhede@nvidia.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
parent
60e7f2c3fe
commit
f707d837b6
|
@ -311,7 +311,6 @@ int mdev_device_create(struct kobject *kobj,
|
||||||
mutex_unlock(&mdev_list_lock);
|
mutex_unlock(&mdev_list_lock);
|
||||||
|
|
||||||
mdev->parent = parent;
|
mdev->parent = parent;
|
||||||
kref_init(&mdev->ref);
|
|
||||||
|
|
||||||
mdev->dev.parent = dev;
|
mdev->dev.parent = dev;
|
||||||
mdev->dev.bus = &mdev_bus_type;
|
mdev->dev.bus = &mdev_bus_type;
|
||||||
|
|
|
@ -30,7 +30,6 @@ struct mdev_device {
|
||||||
struct mdev_parent *parent;
|
struct mdev_parent *parent;
|
||||||
guid_t uuid;
|
guid_t uuid;
|
||||||
void *driver_data;
|
void *driver_data;
|
||||||
struct kref ref;
|
|
||||||
struct list_head next;
|
struct list_head next;
|
||||||
struct kobject *type_kobj;
|
struct kobject *type_kobj;
|
||||||
bool active;
|
bool active;
|
||||||
|
|
Loading…
Reference in New Issue