summaryrefslogtreecommitdiffstats
path: root/scripts/qapi/error.py
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2021-09-02 09:00:22 +0200
committerStefan Hajnoczi2021-09-07 10:08:24 +0200
commit453095e98dc2cefba81dae800614f136f3c1c341 (patch)
tree1df5996b679c514286e54a34fc76b292b39be707 /scripts/qapi/error.py
parentutil/vfio-helpers: Extract qemu_vfio_water_mark_reached() (diff)
downloadqemu-453095e98dc2cefba81dae800614f136f3c1c341.tar.gz
qemu-453095e98dc2cefba81dae800614f136f3c1c341.tar.xz
qemu-453095e98dc2cefba81dae800614f136f3c1c341.zip
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 'scripts/qapi/error.py')
0 files changed, 0 insertions, 0 deletions