summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2021-09-02 09:00:18 +0200
committerStefan Hajnoczi2021-09-07 10:08:24 +0200
commit3f4c0affcfbc7c1da0b117bee0cd5be6f52fa3e5 (patch)
tree2ffd855beae15267917eda1cffe34ce9d498b965 /include
parentutil/vfio-helpers: Replace qemu_mutex_lock() calls with QEMU_LOCK_GUARD (diff)
downloadqemu-3f4c0affcfbc7c1da0b117bee0cd5be6f52fa3e5.tar.gz
qemu-3f4c0affcfbc7c1da0b117bee0cd5be6f52fa3e5.tar.xz
qemu-3f4c0affcfbc7c1da0b117bee0cd5be6f52fa3e5.zip
util/vfio-helpers: Remove unreachable code in qemu_vfio_dma_map()
qemu_vfio_add_mapping() returns a pointer to an indexed entry in pre-allocated QEMUVFIOState::mappings[], thus can not be NULL. Remove the pointless check. Reviewed-by: Klaus Jensen <k.jensen@samsung.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20210902070025.197072-5-philmd@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions