diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-05-27 14:04:09 +0200 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2019-05-29 10:42:26 +0100 |
commit | 5adb6cd1cd1f5537b62d7b09c19c2fd4fe9abbb2 (patch) | |
tree | a46e1cc3bf644d61d2a08cd6cd5a94e23a68c2ac /drivers/irqchip/irq-renesas-irqc.c | |
parent | ce5adf5bbbc89cfa11239b27f8d17eec0bfbb1c1 (diff) | |
download | linux-5adb6cd1cd1f5537b62d7b09c19c2fd4fe9abbb2.tar.bz2 |
irqchip/renesas-irqc: Remove error messages on out-of-memory conditions
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>
Diffstat (limited to 'drivers/irqchip/irq-renesas-irqc.c')
-rw-r--r-- | drivers/irqchip/irq-renesas-irqc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-renesas-irqc.c b/drivers/irqchip/irq-renesas-irqc.c index 438a063c7615..0955ffe12b32 100644 --- a/drivers/irqchip/irq-renesas-irqc.c +++ b/drivers/irqchip/irq-renesas-irqc.c @@ -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; } |