remove init of dev->perm_addr in drivers
perm_addr is initialized correctly in register_netdevice() so to init it in drivers is no longer needed. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
948b337e62
commit
aaeb6cdfa5
@@ -2290,7 +2290,6 @@ int orinoco_if_add(struct orinoco_private *priv,
|
||||
netif_carrier_off(dev);
|
||||
|
||||
memcpy(dev->dev_addr, wiphy->perm_addr, ETH_ALEN);
|
||||
memcpy(dev->perm_addr, wiphy->perm_addr, ETH_ALEN);
|
||||
|
||||
dev->base_addr = base_addr;
|
||||
dev->irq = irq;
|
||||
|
Reference in New Issue
Block a user