Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2287c55 authored by Shrenuj Bansal's avatar Shrenuj Bansal
Browse files

msm: kgsl: Remove unneeded logic checking IOMMU type



There is no reason to check if the IOMMU type is not the IOMMU
at this point because we already return 0 prior to the logic
getting here. Besides, NOMMU mode doesn't deal with pagetables so
why would you take the pagetable lock.

Change-Id: I8e68e5afe540c6e59fc3d11857e9e5355301dd0f
Signed-off-by: default avatarShrenuj Bansal <shrenujb@codeaurora.org>
parent 3e0427c0
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -808,10 +808,7 @@ kgsl_mmu_map(struct kgsl_pagetable *pagetable,
	if (kgsl_memdesc_has_guard_page(memdesc))
		size += kgsl_memdesc_guard_page_size(memdesc);

	if (KGSL_MMU_TYPE_IOMMU != kgsl_mmu_get_mmutype())
		spin_lock(&pagetable->lock);
	ret = pagetable->pt_ops->mmu_map(pagetable, memdesc);
	if (KGSL_MMU_TYPE_IOMMU == kgsl_mmu_get_mmutype())
	spin_lock(&pagetable->lock);

	if (ret)