]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
vfio/mdev: Removed unused kref
authorParav Pandit <parav@mellanox.com>
Tue, 30 Apr 2019 22:49:29 +0000 (17:49 -0500)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 7 May 2019 17:23:13 +0000 (11:23 -0600)
Remove unused kref from the mdev_device structure.

Fixes: 7b96953bc640 ("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>
drivers/vfio/mdev/mdev_core.c
drivers/vfio/mdev/mdev_private.h

index 1299d2e72ce2ef3ab773198fc985b3b367910982..00ca61392de948b03923c7b42a92f2d464316b38 100644 (file)
@@ -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;
index 379758c52b1b4cc40a566ef9e530a33a77f59a08..ddcf9c72bd8a8a0afa4c84f521165ace232ca84b 100644 (file)
@@ -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;