aboutsummaryrefslogtreecommitdiff
path: root/hw/vfio/ccw.c
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2024-05-22 12:40:00 +0800
committerCédric Le Goater <clg@redhat.com>2024-05-22 10:04:21 +0200
commitc6c6cf91c0ad2a98d2566de162c3e089b75c2fc4 (patch)
treef81c5a1b6b8272c1df14fcfac01b0a6c4dac9141 /hw/vfio/ccw.c
parent84e37d02969ca1c7a6a8670e7d1da8e4ca5d56b9 (diff)
downloadqemu-c6c6cf91c0ad2a98d2566de162c3e089b75c2fc4.zip
qemu-c6c6cf91c0ad2a98d2566de162c3e089b75c2fc4.tar.gz
qemu-c6c6cf91c0ad2a98d2566de162c3e089b75c2fc4.tar.bz2
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>
Diffstat (limited to 'hw/vfio/ccw.c')
-rw-r--r--hw/vfio/ccw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c
index 1f578a3..8850ca1 100644
--- a/hw/vfio/ccw.c
+++ b/hw/vfio/ccw.c
@@ -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;
}