irqchip/renesas-intc-irqpin: Remove devm_kzalloc() error printing
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 29 Apr 2019 15:15:14 +0000 (17:15 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Apr 2019 15:29:59 +0000 (16:29 +0100)
There is no need to print a message if devm_kzalloc() fails, as the
memory allocation core already takes care of that.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-renesas-intc-irqpin.c

index 8c03952..04c05a1 100644 (file)
@@ -389,10 +389,8 @@ static int intc_irqpin_probe(struct platform_device *pdev)
        int k;
 
        p = devm_kzalloc(dev, sizeof(*p), GFP_KERNEL);
-       if (!p) {
-               dev_err(dev, "failed to allocate driver data\n");
+       if (!p)
                return -ENOMEM;
-       }
 
        /* deal with driver instance configuration */
        of_property_read_u32(dev->of_node, "sense-bitfield-width",