backends/iommufd: Make iommufd_backend_*() return bool
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Tue, 7 May 2024 06:42:52 +0000 (14:42 +0800)
committerCédric Le Goater <clg@redhat.com>
Thu, 16 May 2024 14:59:20 +0000 (16:59 +0200)
commit9067d50dff29b1b96ef0d4ab7448dbd7b636e55c
treeccf0d91fce85d2947a434774ac9e764191d18350
parentf38f5dd1d454e41def9cdba899d0b059dd8855d9
backends/iommufd: Make iommufd_backend_*() return bool

This is to follow the coding standand to return bool if 'Error **'
is used to pass error.

The changed functions include:

iommufd_backend_connect
iommufd_backend_alloc_ioas

By this chance, simplify the functions a bit by avoiding duplicate
recordings, e.g., log through either error interface or trace, not
both.

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>
backends/iommufd.c
backends/trace-events
hw/vfio/iommufd.c
include/sysemu/iommufd.h