vfio: Stop using iommu_present()
authorRobin Murphy <robin.murphy@arm.com>
Wed, 11 May 2022 19:12:58 +0000 (13:12 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 11 May 2022 19:12:58 +0000 (13:12 -0600)
commita77109ffca339097833f26a1fea55ff71e2b608a
treee50c94a9607c90e939cc09141ede20411865f609
parent5acb6cd19d121522e215b51b243955901ae5ad02
vfio: Stop using iommu_present()

IOMMU groups have been mandatory for some time now, so a device without
one is necessarily a device without any usable IOMMU, therefore the
iommu_present() check is redundant (or at best unhelpful).

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/537103bbd7246574f37f2c88704d7824a3a889f2.1649160714.git.robin.murphy@arm.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c