Skip to contentSkip to conversation

mt7615: Delete an error message in mt7622_wmac_probe()

PATCH New Markus Elfring 1 participant 1 message Apr 5, 2020

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

PATCH 1/1 mt7615: Delete an error message in mt7622_wmac_probe()

From: Markus Elfring <[email protected]>
Date: Sun, 5 Apr 2020 16:45:48 +0200

The function “platform_get_irq” can log an error already. Thus omit a redundant message for the exception handling in the calling function.

This issue was detected by using the Coccinelle software.

---
 drivers/net/wireless/mediatek/mt76/mt7615/soc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/wireless/mediatek/mt76/mt7615/soc.c +1 -3
index 43aa49706c66..9aa5183c7a56 100644
@@ -36,10 +36,8 @@ static int mt7622_wmac_probe(struct platform_device *pdev)
 	int irq;
 
 	irq = platform_get_irq(pdev, 0);
-	if (irq < 0) {
-		dev_err(&pdev->dev, "Failed to get device IRQ\n");
+	if (irq < 0)
 		return irq;
-	}
 
 	mem_base = devm_ioremap_resource(&pdev->dev, res);
 	if (IS_ERR(mem_base)) {

--
2.26.0