diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2016-10-17 09:22:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-17 10:32:35 -0400 |
commit | a7f7b44beadbec60e78d360944e926d5cba7f2d4 (patch) | |
tree | 3a0d87c652776f98d6191ea8225415bd56b60c5e /drivers/net | |
parent | ab3a70bef8f36b3884c7bee1f95c09c888ceb43e (diff) |
net: hip04: Remove superfluous ether_setup after alloc_etherdev
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hip04_eth.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hip04_eth.c b/drivers/net/ethernet/hisilicon/hip04_eth.c index 3c99ca420f57..854befde0a08 100644 --- a/drivers/net/ethernet/hisilicon/hip04_eth.c +++ b/drivers/net/ethernet/hisilicon/hip04_eth.c @@ -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; |