projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba1eabf
)
iommu/tegra: smmu: Cleanup with lesser nest
author
Hiroshi Doyu
<hdoyu@nvidia.com>
Mon, 30 Jul 2012 05:39:18 +0000
(08:39 +0300)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Fri, 3 Aug 2012 14:04:44 +0000
(16:04 +0200)
Small clean up with lesser nest for readability.
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/tegra-smmu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/tegra-smmu.c
b/drivers/iommu/tegra-smmu.c
index a9bf4c30cd84cc72f3a8bf9f9b241f77d54baa1d..37669cc483b124a60e8380d0b05df1043571bff3 100644
(file)
--- a/
drivers/iommu/tegra-smmu.c
+++ b/
drivers/iommu/tegra-smmu.c
@@
-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) {
- err = alloc_pdir(as);
- if (!err)
- goto found;
- }
+
+ if (as->pdir_page)
+ continue;
+
+ err = alloc_pdir(as);
+ if (!err)
+ goto found;
+
if (err != -EAGAIN)
break;
}