提交 460deefa 编写于 作者: P Paul Moore 提交者: David S. Miller

tun: Remove a dead line of code

Remove an unnecessary assignment.
Signed-off-by: NPaul Moore <paul.moore@hp.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 50f238fd
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册