vfio/pci: Make capability related functions return bool
commitb771a40f9eecbffee70a7425e5a96feb58f85d99
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Wed, 22 May 2024 04:40:08 +0000 (22 12:40 +0800)
committerCédric Le Goater <clg@redhat.com>
Wed, 22 May 2024 08:04:21 +0000 (22 10:04 +0200)
tree6287948b1e3ada76239c0f58e141a4284ff95d42
parent64410a741d57b62f736562a89b89d0497b3033ce
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>
hw/vfio/pci.c