summary refs log tree commit diff stats
path: root/hw/vfio/container.c
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2024-05-07 14:42:51 +0800
committerCédric Le Goater <clg@redhat.com>2024-05-16 16:59:20 +0200
commitf38f5dd1d454e41def9cdba899d0b059dd8855d9 (patch)
tree220675eaf048af582b40b3ee581a76d9a21133ae /hw/vfio/container.c
parent45d0d8c4044d330225ef684894e2cdcc05ec0823 (diff)
downloadfocaccia-qemu-f38f5dd1d454e41def9cdba899d0b059dd8855d9.tar.gz
focaccia-qemu-f38f5dd1d454e41def9cdba899d0b059dd8855d9.zip
vfio/cpr: Make vfio_cpr_register_container() return bool
This is to follow the coding standand to return bool if 'Error **'
is used to pass error.

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/container.c')
-rw-r--r--hw/vfio/container.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/vfio/container.c b/hw/vfio/container.c
index 53649e397c..096cc97258 100644
--- a/hw/vfio/container.c
+++ b/hw/vfio/container.c
@@ -618,8 +618,7 @@ static bool vfio_connect_container(VFIOGroup *group, AddressSpace *as,
         goto free_container_exit;
     }
 
-    ret = vfio_cpr_register_container(bcontainer, errp);
-    if (ret) {
+    if (!vfio_cpr_register_container(bcontainer, errp)) {
         goto free_container_exit;
     }