Skip to content
Snippets Groups Projects
Commit c8559fcb authored by Eric Auger's avatar Eric Auger Committed by Michael S. Tsirkin
Browse files

virtio-iommu: Remove useless !sdev check in virtio_iommu_probe()


The code already checks iommu_mr is not NULL so there is no
need to check container_of() is not NULL. Remove the check.

Fixes: CID 1523901
Fixes: 09b4c3d6 ("virtio-iommu: Record whether a probe request has
been issued")
Signed-off-by: default avatarEric Auger <eric.auger@redhat.com>
Reported-by: Coverity (CID 1523901)
Message-Id: <20231109170715.259520-1-eric.auger@redhat.com>
Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent c04cfb45
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment