Skip to contentSkip to conversation

arm: plat-pxa: delete redundant printing of the error

PATCH New Wan Jiabing 1 participant 1 message Mar 12, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: plat-pxa: delete redundant printing of the error

platform_get_irq() has already checked and printed the error, the printing here is not necessary at all.

---
 arch/arm/plat-pxa/ssp.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm/plat-pxa/ssp.c +1 -3
index 563440315acd..9e77b3392c1e 100644
@@ -146,10 +146,8 @@ static int pxa_ssp_probe(struct platform_device *pdev)
 	}
 
 	ssp->irq = platform_get_irq(pdev, 0);
-	if (ssp->irq < 0) {
-		dev_err(dev, "no IRQ resource defined\n");
+	if (ssp->irq < 0)
 		return -ENODEV;
-	}
 
 	if (dev->of_node) {
 		const struct of_device_id *id =
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel