iommu/vt-d: Fold __dmar_remove_one_dev_info() into its caller
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 12 Jul 2022 00:09:00 +0000 (08:09 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 15 Jul 2022 08:21:38 +0000 (10:21 +0200)
commitdb75c9573b08e28109cf7b4ceb62b5f11154742e
tree1e90f36db7f6961540c3f0b0b9e3c63f9410bf09
parent79d82ce4027f30c4d40fdf377888203f76b7ddcc
iommu/vt-d: Fold __dmar_remove_one_dev_info() into its caller

Fold __dmar_remove_one_dev_info() into dmar_remove_one_dev_info() which
is its only caller. Make the spin lock critical range only cover the
device list change code and remove some unnecessary checks.

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