diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2020-04-05 16:10:16 +0300 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2020-05-31 02:02:17 +0300 |
commit | ec32481b1669ad45480ae3b439e3dcde69bfaa68 (patch) | |
tree | d820d1fe4fbaf482b4096011d94ca65993838dd5 /drivers/mailbox/zynqmp-ipi-mailbox.c | |
parent | 47303f9438954bc7bca593310ac8685d11297725 (diff) | |
download | linux-ec32481b1669ad45480ae3b439e3dcde69bfaa68.tar.xz |
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>
Diffstat (limited to 'drivers/mailbox/zynqmp-ipi-mailbox.c')
-rw-r--r-- | drivers/mailbox/zynqmp-ipi-mailbox.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mailbox/zynqmp-ipi-mailbox.c b/drivers/mailbox/zynqmp-ipi-mailbox.c index 86887c9a349a..a4d176f160b8 100644 --- a/drivers/mailbox/zynqmp-ipi-mailbox.c +++ b/drivers/mailbox/zynqmp-ipi-mailbox.c @@ -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); |