summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorOhad Ben-Cohen <ohad@wizery.com>2011-09-02 13:32:31 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2011-09-05 15:14:37 +0200
commitb4550d415a2e1668822ebf3a12b481548756b4e3 (patch)
treefac76ac3e6c83bcc620b60ca6c51dd9a0fd292bb /drivers
parent329d8d3b474923087f6988737ff12137b58e55cc (diff)
downloadop-kernel-dev-b4550d415a2e1668822ebf3a12b481548756b4e3.zip
op-kernel-dev-b4550d415a2e1668822ebf3a12b481548756b4e3.tar.gz
iommu/omap: cleanup: remove a redundant statement
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iommu/omap-iommu.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index 90744afb..4311bc3 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -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,
OpenPOWER on IntegriCloud