tun: Remove a dead line of code
authorPaul Moore <paul.moore@hp.com>
Tue, 7 Jul 2009 08:11:33 +0000 (08:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2009 02:22:11 +0000 (19:22 -0700)
Remove an unnecessary assignment.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c

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