net: hip04: Remove superfluous ether_setup after alloc_etherdev
authorTobias Klauser <tklauser@distanz.ch>
Mon, 17 Oct 2016 07:22:04 +0000 (09:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Oct 2016 14:32:35 +0000 (10:32 -0400)
There is no need to call ether_setup after alloc_ethdev since it was
already called there.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hip04_eth.c

index 3c99ca420f57e40694f647240f8a9fdcae644993..854befde0a08c9031df92a69c5c9e3709062c188 100644 (file)
@@ -897,7 +897,6 @@ static int hip04_mac_probe(struct platform_device *pdev)
 
        INIT_WORK(&priv->tx_timeout_task, hip04_tx_timeout_task);
 
-       ether_setup(ndev);
        ndev->netdev_ops = &hip04_netdev_ops;
        ndev->ethtool_ops = &hip04_ethtool_ops;
        ndev->watchdog_timeo = TX_TIMEOUT;