tun: Remove a dead line of code

Remove an unnecessary assignment.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Paul Moore 2009-07-07 08:11:33 +00:00 committed by David S. Miller
parent 50f238fdf3
commit 460deefae6

View File

@ -995,7 +995,6 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)
goto err_free_sk; goto err_free_sk;
} }
err = -EINVAL;
err = register_netdevice(tun->dev); err = register_netdevice(tun->dev);
if (err < 0) if (err < 0)
goto err_free_sk; goto err_free_sk;