Skip to content

Commit

Permalink
net: hip04: Remove superfluous ether_setup after alloc_etherdev
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tobias Klauser authored and David S. Miller committed Oct 17, 2016
1 parent ab3a70b commit a7f7b44
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/ethernet/hisilicon/hip04_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a7f7b44

Please sign in to comment.