irqchip/renesas-irqc: Remove error messages on out-of-memory conditions
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 27 May 2019 12:04:09 +0000 (14:04 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 29 May 2019 09:42:26 +0000 (10:42 +0100)
There is no need to print error messages if kzalloc() or
ioremap_nocache() fail, as the memory allocation core already takes care
of that.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-renesas-irqc.c

index 438a063c76156d98040e23cece2b0a065c9c430a..0955ffe12b32eb36a648010b1869a637143cfb7e 100644 (file)
@@ -133,7 +133,6 @@ static int irqc_probe(struct platform_device *pdev)
 
        p = kzalloc(sizeof(*p), GFP_KERNEL);
        if (!p) {
-               dev_err(&pdev->dev, "failed to allocate driver data\n");
                ret = -ENOMEM;
                goto err0;
        }
@@ -173,7 +172,6 @@ static int irqc_probe(struct platform_device *pdev)
        /* ioremap IOMEM and setup read/write callbacks */
        p->iomem = ioremap_nocache(io->start, resource_size(io));
        if (!p->iomem) {
-               dev_err(&pdev->dev, "failed to remap IOMEM\n");
                ret = -ENXIO;
                goto err2;
        }