Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48859488 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by David S. Miller
Browse files

sh_eth: no need to call ether_setup()



There's no need to call ether_setup() in the driver since prior alloc_etherdev()
call already arranges for it.

Suggested-by: default avatarDenis Kirjanov <kda@linux-powerpc.org>
Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d7ef9b04
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -2639,9 +2639,6 @@ static int sh_eth_drv_probe(struct platform_device *pdev)

	SET_NETDEV_DEV(ndev, &pdev->dev);

	/* Fill in the fields of the device structure with ethernet values. */
	ether_setup(ndev);

	mdp = netdev_priv(ndev);
	mdp->num_tx_ring = TX_RING_SIZE;
	mdp->num_rx_ring = RX_RING_SIZE;