Skip to content

Commit

Permalink
tun: Remove a dead line of code
Browse files Browse the repository at this point in the history
Remove an unnecessary assignment.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Paul Moore authored and David S. Miller committed Jul 8, 2009
1 parent 50f238f commit 460deef
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 460deef

Please sign in to comment.