vfio: remove unused variable
authorYunjian Wang <wangyunjian@huawei.com>
Sat, 16 May 2020 07:58:39 +0000 (15:58 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 7 Jul 2020 11:49:56 +0000 (13:49 +0200)
The 'group_status' has never been used and can be removed.

Fixes: 94c0776b1bad ("vfio: support hotplug")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/librte_eal/linux/eal_vfio.c

index abb12a3..1435894 100644 (file)
@@ -933,9 +933,6 @@ int
 rte_vfio_release_device(const char *sysfs_base, const char *dev_addr,
                    int vfio_dev_fd)
 {
-       struct vfio_group_status group_status = {
-                       .argsz = sizeof(group_status)
-       };
        struct vfio_config *vfio_cfg;
        int vfio_group_fd;
        int iommu_group_num;