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:
Zhenzhong Duan 2024-05-22 12:40:00 +08:00 committed by Cédric Le Goater
parent 84e37d0296
commit c6c6cf91c0
6 changed files with 10 additions and 11 deletions

View file

@ -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;
}