mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
vfio: Make VFIOIOMMUClass::setup() 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>
This commit is contained in:
parent
b77548355a
commit
35b25cf40e
3 changed files with 11 additions and 13 deletions
|
@ -110,7 +110,7 @@ struct VFIOIOMMUClass {
|
|||
InterfaceClass parent_class;
|
||||
|
||||
/* basic feature */
|
||||
int (*setup)(VFIOContainerBase *bcontainer, Error **errp);
|
||||
bool (*setup)(VFIOContainerBase *bcontainer, Error **errp);
|
||||
int (*dma_map)(const VFIOContainerBase *bcontainer,
|
||||
hwaddr iova, ram_addr_t size,
|
||||
void *vaddr, bool readonly);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue