soc/tegra: cbb: Remove unnecessary print function dev_err()

Message ID 564ff856.bc.1844d48df8a.Coremail.wangkailong@jari.cn
State New
Headers
Series soc/tegra: cbb: Remove unnecessary print function dev_err() |

Commit Message

KaiLong Wang Nov. 6, 2022, 2:12 p.m. UTC
  Eliminate the follow coccicheck warning:

./drivers/soc/tegra/cbb/tegra-cbb.c:142:3-10: line 142 is redundant
because platform_get_irq() already prints an error
./drivers/soc/tegra/cbb/tegra-cbb.c:152:2-9: line 152 is redundant
because platform_get_irq() already prints an error

Signed-off-by: KaiLong Wang <wangkailong@jari.cn>
---
 drivers/soc/tegra/cbb/tegra-cbb.c | 2 --
 1 file changed, 2 deletions(-)
  

Patch

diff --git a/drivers/soc/tegra/cbb/tegra-cbb.c b/drivers/soc/tegra/cbb/tegra-cbb.c
index d200937353c7..33e261301132 100644
--- a/drivers/soc/tegra/cbb/tegra-cbb.c
+++ b/drivers/soc/tegra/cbb/tegra-cbb.c
@@ -139,7 +139,6 @@  int tegra_cbb_get_irq(struct platform_device *pdev, unsigned int *nonsec_irq,
 	if (num_intr == 2) {
 		irq = platform_get_irq(pdev, index);
 		if (irq <= 0) {
-			dev_err(&pdev->dev, "failed to get non-secure IRQ: %d\n", irq);
 			return -ENOENT;
 		}
 
@@ -149,7 +148,6 @@  int tegra_cbb_get_irq(struct platform_device *pdev, unsigned int *nonsec_irq,
 
 	irq = platform_get_irq(pdev, index);
 	if (irq <= 0) {
-		dev_err(&pdev->dev, "failed to get secure IRQ: %d\n", irq);
 		return -ENOENT;
 	}