net: systemport: Omit superfluous error message in bcm_sysport_probe()
authorTang Bin <tangbin@cmss.chinamobile.com>
Sat, 18 Apr 2020 08:51:06 +0000 (16:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Apr 2020 18:05:24 +0000 (11:05 -0700)
In the function bcm_sysport_probe(), when get irq failed, the function
platform_get_irq() logs an error message, so remove redundant message
here.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c

index af7ce5c..c99e5a3 100644 (file)
@@ -2475,7 +2475,6 @@ static int bcm_sysport_probe(struct platform_device *pdev)
                priv->wol_irq = platform_get_irq(pdev, 1);
        }
        if (priv->irq0 <= 0 || (priv->irq1 <= 0 && !priv->is_lite)) {
-               dev_err(&pdev->dev, "invalid interrupts\n");
                ret = -EINVAL;
                goto err_free_netdev;
        }