Skip to content

Commit

Permalink
sh_eth: no need to call ether_setup()
Browse files Browse the repository at this point in the history
There's no need to call ether_setup() in the driver since prior alloc_etherdev()
call already arranges for it.

Suggested-by: Denis Kirjanov <kda@linux-powerpc.org>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sergei Shtylyov authored and David S. Miller committed Aug 29, 2013
1 parent d7ef9b0 commit 4885948
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/ethernet/renesas/sh_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4885948

Please sign in to comment.