]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
ipv6: drop unused variables in seg6_genl_dumphac
authorstephen hemminger <stephen@networkplumber.org>
Fri, 19 May 2017 16:55:55 +0000 (09:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 May 2017 17:42:36 +0000 (13:42 -0400)
THe seg6_pernet_data variable was set but never used.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/seg6.c

index 5f44ffed25768d83c31b31295474c5ecf623e986..15fba55e3da816424b3f68adf05a2989204ff667 100644 (file)
@@ -303,13 +303,9 @@ static int seg6_genl_dumphmac_done(struct netlink_callback *cb)
 static int seg6_genl_dumphmac(struct sk_buff *skb, struct netlink_callback *cb)
 {
        struct rhashtable_iter *iter = (struct rhashtable_iter *)cb->args[0];
-       struct net *net = sock_net(skb->sk);
-       struct seg6_pernet_data *sdata;
        struct seg6_hmac_info *hinfo;
        int ret;
 
-       sdata = seg6_pernet(net);
-
        ret = rhashtable_walk_start(iter);
        if (ret && ret != -EAGAIN)
                goto done;