summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/omap-iommu.c
diff options
context:
space:
mode:
authorSuman Anna2015-07-21 00:33:29 +0200
committerJoerg Roedel2015-08-03 16:04:28 +0200
commit99ee98d6ac964f1a2412d9fe08e577aa4f13905d (patch)
tree39eda91f3248bc6dd104bde4602dde603ff39f1c /drivers/iommu/omap-iommu.c
parentiommu/omap: Remove trailing semi-colon from a macro (diff)
downloadkernel-qcow2-linux-99ee98d6ac964f1a2412d9fe08e577aa4f13905d.tar.gz
kernel-qcow2-linux-99ee98d6ac964f1a2412d9fe08e577aa4f13905d.tar.xz
kernel-qcow2-linux-99ee98d6ac964f1a2412d9fe08e577aa4f13905d.zip
iommu/omap: Remove unnecessary error traces on alloc failures
Fix couple of checkpatch warnings of the type, "WARNING: Possible unnecessary 'out of memory' message" Signed-off-by: Suman Anna <s-anna@ti.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/omap-iommu.c')
-rw-r--r--drivers/iommu/omap-iommu.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index 0fc00f31c39d..4328d9855edb 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -1093,16 +1093,12 @@ static struct iommu_domain *omap_iommu_domain_alloc(unsigned type)
return NULL;
omap_domain = kzalloc(sizeof(*omap_domain), GFP_KERNEL);
- if (!omap_domain) {
- pr_err("kzalloc failed\n");
+ if (!omap_domain)
goto out;
- }
omap_domain->pgtable = kzalloc(IOPGD_TABLE_SIZE, GFP_KERNEL);
- if (!omap_domain->pgtable) {
- pr_err("kzalloc failed\n");
+ if (!omap_domain->pgtable)
goto fail_nomem;
- }
/*
* should never fail, but please keep this around to ensure