iommu/omap: Remove unnecessary error traces on alloc failures
authorSuman Anna <s-anna@ti.com>
Mon, 20 Jul 2015 22:33:29 +0000 (17:33 -0500)
committerJoerg Roedel <jroedel@suse.de>
Mon, 3 Aug 2015 14:04:28 +0000 (16:04 +0200)
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>
drivers/iommu/omap-iommu.c

index 0fc00f31c39dfffcf56b99948cbb05d71c1b8fa6..4328d9855edb009b29f08e0c73c736d14950b7e7 100644 (file)
@@ -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