summaryrefslogtreecommitdiffstats
path: root/net/ipv6/seg6.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2017-05-19 09:55:55 -0700
committerDavid S. Miller <davem@davemloft.net>2017-05-21 13:42:36 -0400
commit0a9fc39e4105350601e59f2914d445f373fcdd8b (patch)
treed5d83ea65f2c439be8b94033f87586703cec4929 /net/ipv6/seg6.c
parent9dc621afa8d673d4bdaab2d850699cd98a50b14a (diff)
downloadlinux-0a9fc39e4105350601e59f2914d445f373fcdd8b.tar.gz
linux-0a9fc39e4105350601e59f2914d445f373fcdd8b.tar.bz2
linux-0a9fc39e4105350601e59f2914d445f373fcdd8b.zip
ipv6: drop unused variables in seg6_genl_dumphac
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>
Diffstat (limited to 'net/ipv6/seg6.c')
-rw-r--r--net/ipv6/seg6.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv6/seg6.c b/net/ipv6/seg6.c
index 5f44ffed2576..15fba55e3da8 100644
--- a/net/ipv6/seg6.c
+++ b/net/ipv6/seg6.c
@@ -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;