Skip to content

Commit

Permalink
ip6_tunnel: Remove duplicate assignments
Browse files Browse the repository at this point in the history
There is a same action when the variable is initialized

Signed-off-by: Hongbin Wang <wh_bin@126.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Hongbin Wang authored and David S. Miller committed Apr 6, 2022
1 parent a5b116a commit 487dc3c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/ipv6/ip6_tunnel.c
Original file line number Diff line number Diff line change
@@ -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);
int err;

t = netdev_priv(dev);

dev->rtnl_link_ops = &ip6_link_ops;
err = register_netdevice(dev);
if (err < 0)

0 comments on commit 487dc3c

Please sign in to comment.