Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a9fc39e authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller
Browse files

ipv6: drop unused variables in seg6_genl_dumphac



THe seg6_pernet_data variable was set but never used.

Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9dc621af
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;