mirror of https://github.com/xemu-project/xemu.git
vfio/pci: rename vfio_put_device to vfio_pci_put_device
vfio_put_device() is a VFIO PCI specific function, rename it with 'vfio_pci' prefix to avoid confusing. No functional change. Suggested-by: Cédric Le Goater <clg@redhat.com> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
931150e56b
commit
c06327c9db
|
@ -2826,7 +2826,7 @@ static void vfio_populate_device(VFIOPCIDevice *vdev, Error **errp)
|
|||
}
|
||||
}
|
||||
|
||||
static void vfio_put_device(VFIOPCIDevice *vdev)
|
||||
static void vfio_pci_put_device(VFIOPCIDevice *vdev)
|
||||
{
|
||||
g_free(vdev->vbasedev.name);
|
||||
g_free(vdev->msix);
|
||||
|
@ -3317,7 +3317,7 @@ static void vfio_instance_finalize(Object *obj)
|
|||
*
|
||||
* g_free(vdev->igd_opregion);
|
||||
*/
|
||||
vfio_put_device(vdev);
|
||||
vfio_pci_put_device(vdev);
|
||||
vfio_put_group(group);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue