Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: cadence: fix platform_get_irq.cocci warning

Remove dev_err() messages after platform_get_irq*() failures.
platform_get_irq() already prints an error.

Generated by: scripts/coccinelle/api/platform_get_irq.cocci

Signed-off-by: Yihao Han <hanyihao@vivo.com>
Link: https://lore.kernel.org/r/20220303125054.3574-1-hanyihao@vivo.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Yihao Han and committed by
Mark Brown
c59dbc64 af524ae5

+1 -3
+1 -3
drivers/spi/spi-cadence-xspi.c
··· 578 578 } 579 579 580 580 cdns_xspi->irq = platform_get_irq(pdev, 0); 581 - if (cdns_xspi->irq < 0) { 582 - dev_err(dev, "Failed to get IRQ\n"); 581 + if (cdns_xspi->irq < 0) 583 582 return -ENXIO; 584 - } 585 583 586 584 ret = devm_request_irq(dev, cdns_xspi->irq, cdns_xspi_irq_handler, 587 585 IRQF_SHARED, pdev->name, cdns_xspi);