Commit f707d837 authored by Parav Pandit's avatar Parav Pandit Committed by Alex Williamson
Browse files

vfio/mdev: Removed unused kref



Remove unused kref from the mdev_device structure.

Fixes: 7b96953b ("vfio: Mediated device Core driver")
Reviewed-by: default avatarCornelia Huck <cohuck@redhat.com>
Reviewed-by: default avatarKirti Wankhede <kwankhede@nvidia.com>
Reviewed-by: default avatarMaxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: default avatarParav Pandit <parav@mellanox.com>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 60e7f2c3
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -311,7 +311,6 @@ int mdev_device_create(struct kobject *kobj,
	mutex_unlock(&mdev_list_lock);

	mdev->parent = parent;
	kref_init(&mdev->ref);

	mdev->dev.parent  = dev;
	mdev->dev.bus     = &mdev_bus_type;
+0 −1
Original line number Diff line number Diff line
@@ -30,7 +30,6 @@ struct mdev_device {
	struct mdev_parent *parent;
	guid_t uuid;
	void *driver_data;
	struct kref ref;
	struct list_head next;
	struct kobject *type_kobj;
	bool active;