iommu/vt-d: Remove unnecessary domain_context_mapped()
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 22 Nov 2022 00:29:48 +0000 (08:29 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 22 Nov 2022 13:05:22 +0000 (14:05 +0100)
commitb1cf1563f3b7396a2cb76b12b3bcdd7046b46372
tree0711a9c71e62c501d10f41d06d8b24a1a5166652
parenta8204479f284a9d21c22e2fd7c9f7564b5828553
iommu/vt-d: Remove unnecessary domain_context_mapped()

The device_domain_info::domain accurately records the domain attached to
the device. It is unnecessary to check whether the context is present in
the attach_dev path. Remove it to make the code neat.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20221118132451.114406-7-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c