mailbox: ZynqMP IPI: Delete an error message in zynqmp_ipi_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 5 Apr 2020 13:10:16 +0000 (15:10 +0200)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 30 May 2020 23:02:17 +0000 (18:02 -0500)
The function platform_get_irq can log an error already.
Thus omit a redundant message for the exception handling in the
calling function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/zynqmp-ipi-mailbox.c

index 86887c9..a4d176f 100644 (file)
@@ -668,10 +668,9 @@ static int zynqmp_ipi_probe(struct platform_device *pdev)
 
        /* IPI IRQ */
        ret = platform_get_irq(pdev, 0);
-       if (ret < 0) {
-               dev_err(dev, "unable to find IPI IRQ.\n");
+       if (ret < 0)
                goto free_mbox_dev;
-       }
+
        pdata->irq = ret;
        ret = devm_request_irq(dev, pdata->irq, zynqmp_ipi_interrupt,
                               IRQF_SHARED, dev_name(dev), pdata);