diff options
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r-- | drivers/net/tun.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 0636f7040325..74e94054ab1a 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -1099,12 +1099,6 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr) | |||
1099 | 1099 | ||
1100 | tun_net_init(dev); | 1100 | tun_net_init(dev); |
1101 | 1101 | ||
1102 | if (strchr(dev->name, '%')) { | ||
1103 | err = dev_alloc_name(dev, dev->name); | ||
1104 | if (err < 0) | ||
1105 | goto err_free_sk; | ||
1106 | } | ||
1107 | |||
1108 | dev->hw_features = NETIF_F_SG | NETIF_F_FRAGLIST | | 1102 | dev->hw_features = NETIF_F_SG | NETIF_F_FRAGLIST | |
1109 | TUN_USER_FEATURES; | 1103 | TUN_USER_FEATURES; |
1110 | dev->features = dev->hw_features; | 1104 | dev->features = dev->hw_features; |