]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ip6_tunnel: Remove duplicate assignments
authorHongbin Wang <wh_bin@126.com>
Wed, 6 Apr 2022 02:06:34 +0000 (22:06 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Apr 2022 14:31:15 +0000 (15:31 +0100)
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>
net/ipv6/ip6_tunnel.c

index 53f632a560ec2019a73b35a61ea24a219a4a49c7..19325b7600bba3a8c8bd5a41be9d2340186d44aa 100644 (file)
@@ -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)