virtio-iommu: Fix coverity issue in virtio_iommu_handle_command()
authorEric Auger <eric.auger@redhat.com>
Mon, 13 Jul 2020 13:36:08 +0000 (14:36 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Jul 2020 13:36:08 +0000 (14:36 +0100)
commite95e05dab6607d9e86cd2eaa3ae4508bf7bb8fbb
treef3aac8eaa67481d3f655c726430963497e822a9d
parent887c0f1544991f567543b7c214aa11ab0cea0a29
virtio-iommu: Fix coverity issue in virtio_iommu_handle_command()

Coverity points out (CID 1430180) that the new case is missing
break or a /* fallthrough */ comment. Break is the right thing to
do as in that case, tail is not used.

Fixes 1733eebb9e ("virtio-iommu: Implement RESV_MEM probe request")
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20200708160147.18426-1-eric.auger@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/virtio/virtio-iommu.c