Skip to contentSkip to conversation

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

PATCH New [email protected] 1 participant 1 message Nov 6, 2022 Tegra architecture support

lore
Share & tools
lore
#0 lore raw

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

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

---
 drivers/soc/tegra/cbb/tegra-cbb.c | 2 --
 1 file changed, 2 deletions(-)
drivers/soc/tegra/cbb/tegra-cbb.c +0 -2
index d200937353c7..33e261301132 100644
@@ -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;
 	}
 
Signature · 1 line
2.25.1