diff options
author | Zhenzhong Duan <zhenzhong.duan@intel.com> | 2024-05-22 12:40:08 +0800 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2024-05-22 10:04:21 +0200 |
commit | b771a40f9eecbffee70a7425e5a96feb58f85d99 (patch) | |
tree | 6287948b1e3ada76239c0f58e141a4284ff95d42 /event-loop-base.c | |
parent | 64410a741d57b62f736562a89b89d0497b3033ce (diff) | |
download | qemu-b771a40f9eecbffee70a7425e5a96feb58f85d99.zip qemu-b771a40f9eecbffee70a7425e5a96feb58f85d99.tar.gz qemu-b771a40f9eecbffee70a7425e5a96feb58f85d99.tar.bz2 |
vfio/pci: Make capability related functions return bool
The functions operating on capability don't have a consistent return style.
Below functions are in bool-valued functions style:
vfio_msi_setup()
vfio_msix_setup()
vfio_add_std_cap()
vfio_add_capabilities()
Below two are integer-valued functions:
vfio_add_vendor_specific_cap()
vfio_setup_pcie_cap()
But the returned integer is only used for check succeed/failure.
Change them all to return bool so now all capability related
functions follow the coding standand in qapi/error.h to return
bool.
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>
Diffstat (limited to 'event-loop-base.c')
0 files changed, 0 insertions, 0 deletions