]> xenbits.xensource.com Git - qemu-xen.git/commit
util/vfio-helpers: Simplify qemu_vfio_dma_map() returning directly
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 2 Sep 2021 07:00:23 +0000 (09:00 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 7 Sep 2021 08:08:24 +0000 (09:08 +0100)
commit5a4f1626e307024765f7e5b45f5884e34a27d968
tree0c2adefec9e23d4c1e47a3ccd58fcc50179111f8
parent453095e98dc2cefba81dae800614f136f3c1c341
util/vfio-helpers: Simplify qemu_vfio_dma_map() returning directly

To simplify qemu_vfio_dma_map():
- reduce 'ret' (returned value) scope by returning errno directly,
- remove the goto 'out' label.

Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20210902070025.197072-10-philmd@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
util/vfio-helpers.c