From: Hongbin Wang Date: Wed, 6 Apr 2022 02:06:34 +0000 (-0400) Subject: ip6_tunnel: Remove duplicate assignments X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=487dc3ca60e3e420d54bcc613cb49e8e85f34569;p=linux.git ip6_tunnel: Remove duplicate assignments There is a same action when the variable is initialized Signed-off-by: Hongbin Wang Signed-off-by: David S. Miller --- diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index 53f632a560ec2..19325b7600bba 100644 --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c @@ -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)