mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-27 12:02:04 -06:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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->vbasedev.name);
|
||||||
g_free(vdev->msix);
|
g_free(vdev->msix);
|
||||||
|
@ -3317,7 +3317,7 @@ static void vfio_instance_finalize(Object *obj)
|
||||||
*
|
*
|
||||||
* g_free(vdev->igd_opregion);
|
* g_free(vdev->igd_opregion);
|
||||||
*/
|
*/
|
||||||
vfio_put_device(vdev);
|
vfio_pci_put_device(vdev);
|
||||||
vfio_put_group(group);
|
vfio_put_group(group);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue