diff options
author | Yihao Han <hanyihao@vivo.com> | 2022-03-03 04:50:54 -0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-03-07 13:16:07 +0000 |
commit | c59dbc642d4e76187516960780b6cd26e7f2c943 (patch) | |
tree | 3716e05bfdb214340516f8edb84dedec454f5e25 /drivers/spi | |
parent | af524ae5ad13a9c28acf0b2ec4489d5903c4fbed (diff) | |
download | lwn-c59dbc642d4e76187516960780b6cd26e7f2c943.tar.gz lwn-c59dbc642d4e76187516960780b6cd26e7f2c943.zip |
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-cadence-xspi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-cadence-xspi.c b/drivers/spi/spi-cadence-xspi.c index 4bc1b93fc276..3ab19be83095 100644 --- a/drivers/spi/spi-cadence-xspi.c +++ b/drivers/spi/spi-cadence-xspi.c @@ -578,10 +578,8 @@ static int cdns_xspi_probe(struct platform_device *pdev) } cdns_xspi->irq = platform_get_irq(pdev, 0); - if (cdns_xspi->irq < 0) { - dev_err(dev, "Failed to get IRQ\n"); + if (cdns_xspi->irq < 0) return -ENXIO; - } ret = devm_request_irq(dev, cdns_xspi->irq, cdns_xspi_irq_handler, IRQF_SHARED, pdev->name, cdns_xspi); |