mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
vfio/container: Remove vfio_container_init()
It's now empty. Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
41d698b8d6
commit
2f7243cb8a
4 changed files with 0 additions and 11 deletions
|
@ -419,7 +419,6 @@ static VFIOContainer *vfio_create_container(int fd, VFIOGroup *group,
|
|||
Error **errp)
|
||||
{
|
||||
int iommu_type;
|
||||
const VFIOIOMMUClass *vioc;
|
||||
const char *vioc_name;
|
||||
VFIOContainer *container;
|
||||
|
||||
|
@ -433,12 +432,10 @@ static VFIOContainer *vfio_create_container(int fd, VFIOGroup *group,
|
|||
}
|
||||
|
||||
vioc_name = vfio_get_iommu_class_name(iommu_type);
|
||||
vioc = VFIO_IOMMU_CLASS(object_class_by_name(vioc_name));
|
||||
|
||||
container = VFIO_IOMMU_LEGACY(object_new(vioc_name));
|
||||
container->fd = fd;
|
||||
container->iommu_type = iommu_type;
|
||||
vfio_container_init(&container->bcontainer, vioc);
|
||||
return container;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue