vfio/iommu_type1: remove IS_IOMMU_CAP_DOMAIN_IN_CONTAINER
authorChristoph Hellwig <hch@lst.de>
Fri, 24 Sep 2021 15:57:05 +0000 (17:57 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 30 Sep 2021 18:46:45 +0000 (12:46 -0600)
commit3f901389fa88d32d660cf2209aac6e395902d017
treee3a1e2272aa16b9ada5e76dba69a44be862ff6ab
parent296e505baddf92ed73f6ca2ddbb426357bb5abc4
vfio/iommu_type1: remove IS_IOMMU_CAP_DOMAIN_IN_CONTAINER

IS_IOMMU_CAP_DOMAIN_IN_CONTAINER just obsfucated the checks being
performed, so open code it in the callers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20210924155705.4258-16-hch@lst.de
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c