mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
vfio/pci-quirks: Make vfio_pci_igd_opregion_init() return bool
This is to follow the coding standand in qapi/error.h to return bool for bool-valued functions. Suggested-by: Cédric Le Goater <clg@redhat.com> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
514855e18f
commit
d3c6a18bc7
4 changed files with 9 additions and 11 deletions
|
@ -3161,8 +3161,7 @@ static void vfio_realize(PCIDevice *pdev, Error **errp)
|
|||
goto out_teardown;
|
||||
}
|
||||
|
||||
ret = vfio_pci_igd_opregion_init(vdev, opregion, errp);
|
||||
if (ret) {
|
||||
if (!vfio_pci_igd_opregion_init(vdev, opregion, errp)) {
|
||||
goto out_teardown;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue