mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
spi: stm32: Remove unnecessary print function dev_err()
The print function dev_err() is redundant because platform_get_irq() already prints an error. ./drivers/spi/spi-stm32-ospi.c:798:2-9: line 798 is redundant because platform_get_irq() already prints an error. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=19220 Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Link: https://patch.msgid.link/20250306024716.27856-1-jiapeng.chong@linux.alibaba.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
7dfc9bdde9
commit
3707fd9c38
|
|
@ -794,10 +794,8 @@ static int stm32_ospi_get_resources(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
ospi->irq = platform_get_irq(pdev, 0);
|
||||
if (ospi->irq < 0) {
|
||||
dev_err(dev, "Can't get irq %d\n", ospi->irq);
|
||||
if (ospi->irq < 0)
|
||||
return ospi->irq;
|
||||
}
|
||||
|
||||
ret = devm_request_irq(dev, ospi->irq, stm32_ospi_irq, 0,
|
||||
dev_name(dev), ospi);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user