lkml.org 
[lkml]   [2019]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/5] irqchip/renesas-irqc: Remove devm_kzalloc()/ioremap_nocache() error printing
    Date
    There is no need to print a message if devm_kzalloc() or
    ioremap_nocache() fails, as the memory allocation core already takes
    care of that.

    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    ---
    drivers/irqchip/irq-renesas-irqc.c | 2 --
    1 file changed, 2 deletions(-)

    diff --git a/drivers/irqchip/irq-renesas-irqc.c b/drivers/irqchip/irq-renesas-irqc.c
    index 438a063c76156d98..0955ffe12b32eb36 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;
    }
    --
    2.17.1
    \
     
     \ /
      Last update: 2019-04-29 17:20    [W:2.503 / U:0.208 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site