Skip to content

Commit 4885948

Browse files
Sergei Shtylyovdavem330
authored andcommitted
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: Denis Kirjanov <kda@linux-powerpc.org> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d7ef9b0 commit 4885948

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/net/ethernet/renesas/sh_eth.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2639,9 +2639,6 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
26392639

26402640
SET_NETDEV_DEV(ndev, &pdev->dev);
26412641

2642-
/* Fill in the fields of the device structure with ethernet values. */
2643-
ether_setup(ndev);
2644-
26452642
mdp = netdev_priv(ndev);
26462643
mdp->num_tx_ring = TX_RING_SIZE;
26472644
mdp->num_rx_ring = RX_RING_SIZE;

0 commit comments

Comments
 (0)