mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
net: call dev_alloc_name from register_netdevice
Force dev_alloc_name() to be called from register_netdevice() by
dev_get_valid_name(). That allows to remove multiple explicit
dev_alloc_name() calls.
The possibility to call dev_alloc_name in advance remains.
This also fixes veth creation regresion caused by
84c49d8c3e
Signed-off-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
e892067497
commit
1c5cae815d
20 changed files with 12 additions and 134 deletions
|
|
@ -1994,8 +1994,6 @@ static struct net_device *netiucv_init_netdevice(char *username)
|
|||
netiucv_setup_netdevice);
|
||||
if (!dev)
|
||||
return NULL;
|
||||
if (dev_alloc_name(dev, dev->name) < 0)
|
||||
goto out_netdev;
|
||||
|
||||
privptr = netdev_priv(dev);
|
||||
privptr->fsm = init_fsm("netiucvdev", dev_state_names,
|
||||
|
|
|
|||
Loading…
Reference in a new issue