diff options
author | Suman Anna <s-anna@ti.com> | 2015-07-20 18:33:29 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-08-03 10:04:28 -0400 |
commit | 99ee98d6ac964f1a2412d9fe08e577aa4f13905d (patch) | |
tree | 39eda91f3248bc6dd104bde4602dde603ff39f1c | |
parent | 5b39a37abc007542995506ad0d8e4c3991e6970a (diff) |
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>
-rw-r--r-- | drivers/iommu/omap-iommu.c | 8 |
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) | |||
1093 | return NULL; | 1093 | return NULL; |
1094 | 1094 | ||
1095 | omap_domain = kzalloc(sizeof(*omap_domain), GFP_KERNEL); | 1095 | omap_domain = kzalloc(sizeof(*omap_domain), GFP_KERNEL); |
1096 | if (!omap_domain) { | 1096 | if (!omap_domain) |
1097 | pr_err("kzalloc failed\n"); | ||
1098 | goto out; | 1097 | goto out; |
1099 | } | ||
1100 | 1098 | ||
1101 | omap_domain->pgtable = kzalloc(IOPGD_TABLE_SIZE, GFP_KERNEL); | 1099 | omap_domain->pgtable = kzalloc(IOPGD_TABLE_SIZE, GFP_KERNEL); |
1102 | if (!omap_domain->pgtable) { | 1100 | if (!omap_domain->pgtable) |
1103 | pr_err("kzalloc failed\n"); | ||
1104 | goto fail_nomem; | 1101 | goto fail_nomem; |
1105 | } | ||
1106 | 1102 | ||
1107 | /* | 1103 | /* |
1108 | * should never fail, but please keep this around to ensure | 1104 | * should never fail, but please keep this around to ensure |