diff options
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r-- | drivers/net/tun.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index c3927b423743..92ffd11a7195 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -995,7 +995,6 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr) | |||
995 | goto err_free_sk; | 995 | goto err_free_sk; |
996 | } | 996 | } |
997 | 997 | ||
998 | err = -EINVAL; | ||
999 | err = register_netdevice(tun->dev); | 998 | err = register_netdevice(tun->dev); |
1000 | if (err < 0) | 999 | if (err < 0) |
1001 | goto err_free_sk; | 1000 | goto err_free_sk; |