提交 0a9fc39e 编写于 作者: S stephen hemminger 提交者: David S. Miller

ipv6: drop unused variables in seg6_genl_dumphac

THe seg6_pernet_data variable was set but never used.
Signed-off-by: NStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 9dc621af
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册