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

Commit d2453b2c authored by Hiroshi Doyu's avatar Hiroshi Doyu Committed by Joerg Roedel
Browse files

iommu/tegra: smmu: Cleanup with lesser nest



Small clean up with lesser nest for readability.

Signed-off-by: default avatarHiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent ba1eabfa
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -814,11 +814,14 @@ static int smmu_iommu_domain_init(struct iommu_domain *domain)
	/* Look for a free AS with lock held */
	for  (i = 0; i < smmu->num_as; i++) {
		as = &smmu->as[i];
		if (!as->pdir_page) {

		if (as->pdir_page)
			continue;

		err = alloc_pdir(as);
		if (!err)
			goto found;
		}

		if (err != -EAGAIN)
			break;
	}