mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
vfio/helpers: Make vfio_device_get_name() 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
84e37d0296
commit
c6c6cf91c0
6 changed files with 10 additions and 11 deletions
|
@ -588,7 +588,7 @@ static void vfio_ccw_realize(DeviceState *dev, Error **errp)
|
|||
}
|
||||
}
|
||||
|
||||
if (vfio_device_get_name(vbasedev, errp) < 0) {
|
||||
if (!vfio_device_get_name(vbasedev, errp)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue