Commit c046c2a2 authored by Kunkun Jiang's avatar Kunkun Jiang Committed by Zheng Zengkai
Browse files

iommu/arm-smmu-v3: Remove the redundant shift operation of 'size'

virt inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I401IF


CVE: NA

------------------------------

There is no reason to do the shift operation to 'size' in
arm_smmu_cache_invalidate().

Signed-off-by: default avatarKunkun Jiang <jiangkunkun@huawei.com>
Reviewed-by: default avatarKeqian Zhu <zhukeqian1@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent f7cdf692
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -3621,7 +3621,6 @@ arm_smmu_cache_invalidate(struct iommu_domain *domain, struct device *dev,
		    !(granule_size & smmu_domain->domain.pgsize_bitmap)) {
			tg = __ffs(smmu_domain->domain.pgsize_bitmap);
			granule_size = 1 << tg;
			size = size >> tg;
		}

		arm_smmu_tlb_inv_range_domain(info->addr, size,