提交 487dc3ca 编写于 作者: H Hongbin Wang 提交者: David S. Miller

ip6_tunnel: Remove duplicate assignments

There is a same action when the variable is initialized
Signed-off-by: NHongbin Wang <wh_bin@126.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a5b116a0
...@@ -257,8 +257,6 @@ static int ip6_tnl_create2(struct net_device *dev) ...@@ -257,8 +257,6 @@ static int ip6_tnl_create2(struct net_device *dev)
struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id); struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
int err; int err;
t = netdev_priv(dev);
dev->rtnl_link_ops = &ip6_link_ops; dev->rtnl_link_ops = &ip6_link_ops;
err = register_netdevice(dev); err = register_netdevice(dev);
if (err < 0) if (err < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册