summaryrefslogtreecommitdiff
path: root/net/ipv6/ip6_tunnel.c
diff options
context:
space:
mode:
authorHongbin Wang <wh_bin@126.com>2022-04-05 22:06:34 -0400
committerDavid S. Miller <davem@davemloft.net>2022-04-06 15:31:15 +0100
commit487dc3ca60e3e420d54bcc613cb49e8e85f34569 (patch)
treec841a584022280decf12081cad9914b304ad69e7 /net/ipv6/ip6_tunnel.c
parenta5b116a0fa90d6d0e7af4f39199a6ae1f0afc9c7 (diff)
ip6_tunnel: Remove duplicate assignments
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>
Diffstat (limited to 'net/ipv6/ip6_tunnel.c')
-rw-r--r--net/ipv6/ip6_tunnel.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index 53f632a560ec..19325b7600bb 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)