iommu/vt-d: Remove scalabe mode in domain_context_clear_one()
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 5 Mar 2024 12:21:21 +0000 (20:21 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 6 Mar 2024 16:35:59 +0000 (17:35 +0100)
commit80ca79f398bff2708ee7a19d5904804415680aad
tree22302fbb51d652c0639dcfe9189224a48abf92ab
parenta016e53843ed8bb9cccb832768e2be9856b0a913
iommu/vt-d: Remove scalabe mode in domain_context_clear_one()

domain_context_clear_one() only handles the context entry teardown in
legacy mode. Remove the scalable mode check in it to avoid dead code.

Remove an unnecessary check in the code as well.

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