Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/etnaviv: Drop the 'len' parameter of etnaviv_iommu_map() function

The 'len' parameter is the 4th argument, because it is not get used, so
drop it. No functional change.

Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>

authored by

Sui Jingfeng and committed by
Lucas Stach
9e2e8a51 e8491f02

+2 -2
+2 -2
drivers/gpu/drm/etnaviv/etnaviv_mmu.c
··· 70 70 } 71 71 72 72 static int etnaviv_iommu_map(struct etnaviv_iommu_context *context, u32 iova, 73 - struct sg_table *sgt, unsigned len, int prot) 73 + struct sg_table *sgt, int prot) 74 74 { struct scatterlist *sg; 75 75 unsigned int da = iova; 76 76 unsigned int i; ··· 314 314 goto unlock; 315 315 316 316 mapping->iova = node->start; 317 - ret = etnaviv_iommu_map(context, node->start, sgt, etnaviv_obj->base.size, 317 + ret = etnaviv_iommu_map(context, node->start, sgt, 318 318 ETNAVIV_PROT_READ | ETNAVIV_PROT_WRITE); 319 319 320 320 if (ret < 0) {