mt76: mt7615: Delete an error message in mt7622_wmac_probe()

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.

Signed-off-by: Markus Elfring <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Markus Elfring
2020-04-06 12:20:12 +02:00
committed by Felix Fietkau
parent 1e8b2fe5ab
commit ec0ea46dac
+1 -3
View File
@@ -36,10 +36,8 @@ static int mt7622_wmac_probe(struct platform_device *pdev)
int irq; int irq;
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0)
dev_err(&pdev->dev, "Failed to get device IRQ\n");
return irq; return irq;
}
mem_base = devm_ioremap_resource(&pdev->dev, res); mem_base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(mem_base)) { if (IS_ERR(mem_base)) {