From: Paul Moore Date: Tue, 7 Jul 2009 08:11:33 +0000 (+0000) Subject: tun: Remove a dead line of code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=460deefae62db4472e8bd16b21c7d70f3c7fd785;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git tun: Remove a dead line of code Remove an unnecessary assignment. Signed-off-by: Paul Moore Signed-off-by: David S. Miller --- 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) goto err_free_sk; } - err = -EINVAL; err = register_netdevice(tun->dev); if (err < 0) goto err_free_sk;