diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-09-02 09:00:22 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2021-09-07 09:08:24 +0100 |
commit | 453095e98dc2cefba81dae800614f136f3c1c341 (patch) | |
tree | 1df5996b679c514286e54a34fc76b292b39be707 /python | |
parent | 71e3038c1500e2d6075b306f26d565f982287756 (diff) | |
download | qemu-453095e98dc2cefba81dae800614f136f3c1c341.zip qemu-453095e98dc2cefba81dae800614f136f3c1c341.tar.gz qemu-453095e98dc2cefba81dae800614f136f3c1c341.tar.bz2 |
util/vfio-helpers: Use error_setg in qemu_vfio_find_[fixed/temp]_iova
Both qemu_vfio_find_fixed_iova() and qemu_vfio_find_temp_iova()
return an errno which is unused (or overwritten). Have them propagate
eventual errors to callers, returning a boolean (which is what the
Error API recommends, see commit e3fe3988d78 "error: Document Error
API usage rules" for rationale).
Suggested-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20210902070025.197072-9-philmd@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions