1
0
Fork 0

mailbox: ZynqMP IPI: Delete an error message in zynqmp_ipi_probe()

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>
alistair/sunxi64-5.8
Markus Elfring 2020-04-05 15:10:16 +02:00 committed by Jassi Brar
parent 47303f9438
commit ec32481b16
1 changed files with 2 additions and 3 deletions

View 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);