iommu/vt-d: Simplify check in identity_mapping()
authorJoerg Roedel <jroedel@suse.de>
Mon, 17 Feb 2020 16:29:55 +0000 (17:29 +0100)
committerJoerg Roedel <jroedel@suse.de>
Tue, 18 Feb 2020 16:21:51 +0000 (17:21 +0100)
commit1ddb32da4a629fa7f87873d0b6836c2e1feb7518
tree3a720b64a4b76fcc93b00c75e861b314cd216dd8
parent96d170f3b1a607612caf3618c534d5c64fc2d61b
iommu/vt-d: Simplify check in identity_mapping()

The function only has one call-site and there it is never called with
dummy or deferred devices. Simplify the check in the function to
account for that.

Fixes: 1ee0186b9a12 ("iommu/vt-d: Refactor find_domain() helper")
Cc: stable@vger.kernel.org # v5.5
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c