]> www.infradead.org Git - users/dwmw2/linux.git/commit
iommu/mediatek-v1: Clean up redundant fwspec checks
authorRobin Murphy <robin.murphy@arm.com>
Tue, 2 Jul 2024 11:40:47 +0000 (12:40 +0100)
committerWill Deacon <will@kernel.org>
Thu, 4 Jul 2024 13:36:03 +0000 (14:36 +0100)
commite7acc36f26b0b1a71dd068f4afd33d871352d67d
tree6d6b0dac4bed3bddb2b73352fbc4e7c89e4c8f15
parent83a7eefedc9b56fe7bfeff13b6c7356688ffa670
iommu/mediatek-v1: Clean up redundant fwspec checks

The driver explicitly clears any existing fwspec before calling
mtk_iommu_v1_create_mapping(), but even if it didn't, the checks it's
doing there duplicate what iommu_fwspec_init() would do anyway. Clean
them up.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407020415.KKnhPTUj-lkp@intel.com/
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/7d6ebec135483f889af00eb376aa31c012efc3b2.1719919669.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/mtk_iommu_v1.c