Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287375
b: refs/heads/master
c: 05df1f3
h: refs/heads/master
i:
  287373: cabbd12
  287371: 8d296cb
  287367: 133ecf4
  287359: a5f9cfd
v: v3
  • Loading branch information
Joerg Roedel committed Jan 30, 2012
1 parent 684398d commit cd8c68c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af1be04901e27ce669b4ecde1c953d5c939498f5
refs/heads/master: 05df1f3c2afaef5672627f2b7095f0d4c4dbc3a0
7 changes: 1 addition & 6 deletions trunk/drivers/iommu/msm_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,23 +482,19 @@ static size_t msm_iommu_unmap(struct iommu_domain *domain, unsigned long va,

priv = domain->priv;

if (!priv) {
ret = -ENODEV;
if (!priv)
goto fail;
}

fl_table = priv->pgtable;

if (len != SZ_16M && len != SZ_1M &&
len != SZ_64K && len != SZ_4K) {
pr_debug("Bad length: %d\n", len);
ret = -EINVAL;
goto fail;
}

if (!fl_table) {
pr_debug("Null page table\n");
ret = -EINVAL;
goto fail;
}

Expand All @@ -507,7 +503,6 @@ static size_t msm_iommu_unmap(struct iommu_domain *domain, unsigned long va,

if (*fl_pte == 0) {
pr_debug("First level PTE is 0\n");
ret = -ENODEV;
goto fail;
}

Expand Down

0 comments on commit cd8c68c

Please sign in to comment.