Skip to contentSkip to conversation

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

PATCH Applied Jiapeng Chong 2 participants 2 messages May 6, 2023 – Jul 27, 2023 Tegra architecture support

lore
Share & tools
lore
#0 lore raw

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

The print function dev_err() is redundant because platform_get_irq() already prints an error.

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

---
 drivers/soc/tegra/cbb/tegra-cbb.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
drivers/soc/tegra/cbb/tegra-cbb.c +2 -6
index bd96204a68ee..413b441c1604 100644
@@ -126,20 +126,16 @@ 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);
+		if (irq <= 0)
 			return -ENOENT;
-		}
 
 		*nonsec_irq = irq;
 		index++;
 	}
 
 	irq = platform_get_irq(pdev, index);
-	if (irq <= 0) {
-		dev_err(&pdev->dev, "failed to get secure IRQ: %d\n", irq);
+	if (irq <= 0)
 		return -ENOENT;
-	}
 
 	*sec_irq = irq;
 
Signature · 1 line
2.20.1.7.g153144c
#1 lore raw

From: Thierry Reding <[email protected]>

Quoted 8 lines · Jiapeng Chong

The print function dev_err() is redundant because platform_get_irq() already prints an error.

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

[...]

Applied, thanks!

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

      commit: 10f975f8b0e8e563bf1e5c2f5e4ebada29fa7edc

Best regards,

Signature · 1 line
Thierry Reding <[email protected]>