Skip to content

Commit

Permalink
iommu/omap: cleanup: remove a redundant statement
Browse files Browse the repository at this point in the history
Tiny cleanup that removes a redundant 'return' statement.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
  • Loading branch information
Ohad Ben-Cohen authored and Joerg Roedel committed Sep 5, 2011
1 parent 329d8d3 commit b4550d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/iommu/omap-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1069,12 +1069,10 @@ static int omap_iommu_map(struct iommu_domain *domain, unsigned long da,
iotlb_init_entry(&e, da, pa, flags);

ret = omap_iopgtable_store_entry(oiommu, &e);
if (ret) {
if (ret)
dev_err(dev, "omap_iopgtable_store_entry failed: %d\n", ret);
return ret;
}

return 0;
return ret;
}

static int omap_iommu_unmap(struct iommu_domain *domain, unsigned long da,
Expand Down

0 comments on commit b4550d4

Please sign in to comment.