net: ethernet: Remove superfluous ether_setup after alloc_etherdev
There is no need to call ether_setup after alloc_ethdev since it was already called there. Follow commitsc706471b26
("net: axienet: remove unnecessary ether_setup after alloc_etherdev") and3c87dcbfb3
("net: ll_temac: Remove unnecessary ether_setup after alloc_etherdev") and fix the pattern in all remaining ethernet drivers. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
c2bf5ec204
commit
6a05880a8b
@@ -2255,7 +2255,6 @@ static int smsc911x_init(struct net_device *dev)
|
||||
if (smsc911x_soft_reset(pdata))
|
||||
return -ENODEV;
|
||||
|
||||
ether_setup(dev);
|
||||
dev->flags |= IFF_MULTICAST;
|
||||
netif_napi_add(dev, &pdata->napi, smsc911x_poll, SMSC_NAPI_WEIGHT);
|
||||
dev->netdev_ops = &smsc911x_netdev_ops;
|
||||
|
Reference in New Issue
Block a user