aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>2025-03-06 10:47:16 +0800
committerMark Brown <broonie@kernel.org>2025-03-06 15:39:00 +0000
commit3707fd9c383fc7ae19733a3ad2e5a82bf86370a0 (patch)
treebbd0f6ac1d2bba67dc310d479eca2c922269a27e
parentspi: stm32-ospi: Fix an IS_ERR() vs NULL bug in stm32_ospi_get_resources() (diff)
downloadwireguard-linux-3707fd9c383fc7ae19733a3ad2e5a82bf86370a0.tar.xz
wireguard-linux-3707fd9c383fc7ae19733a3ad2e5a82bf86370a0.zip
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>
Diffstat (limited to '')
-rw-r--r--drivers/spi/spi-stm32-ospi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-stm32-ospi.c b/drivers/spi/spi-stm32-ospi.c
index a544d7897edf..d4f413c8c3ce 100644
--- a/drivers/spi/spi-stm32-ospi.c
+++ b/drivers/spi/spi-stm32-ospi.c
@@ -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);