staging: axis-fifo: remove redundant dev_err call
authorMuhammad Usama Anjum <musamaanjum@gmail.com>
Wed, 7 Apr 2021 16:12:02 +0000 (21:12 +0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Apr 2021 07:24:05 +0000 (09:24 +0200)
devm_ioremap_resource() prints error message in itself. Remove the
dev_err call to avoid redundant error message.

Signed-off-by: Muhammad Usama Anjum <musamaanjum@gmail.com>
Link: https://lore.kernel.org/r/20210407161202.GA1505056@LEGION
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/axis-fifo/axis-fifo.c

index 2bb1c2e..ed92810 100644 (file)
@@ -853,7 +853,6 @@ static int axis_fifo_probe(struct platform_device *pdev)
        fifo->base_addr = devm_ioremap_resource(fifo->dt_device, r_mem);
        if (IS_ERR(fifo->base_addr)) {
                rc = PTR_ERR(fifo->base_addr);
-               dev_err(fifo->dt_device, "can't remap IO resource (%d)\n", rc);
                goto err_initial;
        }