Skip to content

Commit ec32481

Browse files
elfringJassiBrar
authored andcommitted
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 <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent 47303f9 commit ec32481

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/mailbox/zynqmp-ipi-mailbox.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,10 +668,9 @@ static int zynqmp_ipi_probe(struct platform_device *pdev)
668668

669669
/* IPI IRQ */
670670
ret = platform_get_irq(pdev, 0);
671-
if (ret < 0) {
672-
dev_err(dev, "unable to find IPI IRQ.\n");
671+
if (ret < 0)
673672
goto free_mbox_dev;
674-
}
673+
675674
pdata->irq = ret;
676675
ret = devm_request_irq(dev, pdata->irq, zynqmp_ipi_interrupt,
677676
IRQF_SHARED, dev_name(dev), pdata);

0 commit comments

Comments
 (0)