Skip to content

Commit a7f7b44

Browse files
tklauserdavem330
authored andcommitted
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>
1 parent ab3a70b commit a7f7b44

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/hisilicon/hip04_eth.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,6 @@ static int hip04_mac_probe(struct platform_device *pdev)
897897

898898
INIT_WORK(&priv->tx_timeout_task, hip04_tx_timeout_task);
899899

900-
ether_setup(ndev);
901900
ndev->netdev_ops = &hip04_netdev_ops;
902901
ndev->ethtool_ops = &hip04_ethtool_ops;
903902
ndev->watchdog_timeo = TX_TIMEOUT;

0 commit comments

Comments
 (0)