mt76: mt7615: Delete an error message in mt7622_wmac_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 5 Apr 2020 14:45:48 +0000 (16:45 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 12 May 2020 17:52:30 +0000 (19:52 +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.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/soc.c

index 43aa49706c6696768cdc204855cf6adf2cf8a82b..9aa5183c7a56eaf742537393e003fbddc04bdef1 100644 (file)
@@ -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)) {