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>
This commit is contained in:
Suman Anna 2015-07-20 17:33:29 -05:00 committed by Joerg Roedel
parent 5b39a37abc
commit 99ee98d6ac

View file

@ -1093,16 +1093,12 @@ static struct iommu_domain *omap_iommu_domain_alloc(unsigned type)
return NULL; return NULL;
omap_domain = kzalloc(sizeof(*omap_domain), GFP_KERNEL); omap_domain = kzalloc(sizeof(*omap_domain), GFP_KERNEL);
if (!omap_domain) { if (!omap_domain)
pr_err("kzalloc failed\n");
goto out; goto out;
}
omap_domain->pgtable = kzalloc(IOPGD_TABLE_SIZE, GFP_KERNEL); omap_domain->pgtable = kzalloc(IOPGD_TABLE_SIZE, GFP_KERNEL);
if (!omap_domain->pgtable) { if (!omap_domain->pgtable)
pr_err("kzalloc failed\n");
goto fail_nomem; goto fail_nomem;
}
/* /*
* should never fail, but please keep this around to ensure * should never fail, but please keep this around to ensure