X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fpacket%2Fdiag.c;h=d3fcd1ebef7ee061522175f39dda2649d8a6035f;hb=b67bfe0d42cac56c512dd5da4b1b347a23f4b70a;hp=8db6e21c46bd619f6bc2c271a41d27b70772112e;hpb=ba0a5a36f60e4c1152af3a2ae2813251974405bf;p=~andy%2Flinux diff --git a/net/packet/diag.c b/net/packet/diag.c index 8db6e21c46b..d3fcd1ebef7 100644 --- a/net/packet/diag.c +++ b/net/packet/diag.c @@ -172,13 +172,12 @@ static int packet_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) struct packet_diag_req *req; struct net *net; struct sock *sk; - struct hlist_node *node; net = sock_net(skb->sk); req = nlmsg_data(cb->nlh); mutex_lock(&net->packet.sklist_lock); - sk_for_each(sk, node, &net->packet.sklist) { + sk_for_each(sk, &net->packet.sklist) { if (!net_eq(sock_net(sk), net)) continue; if (num < s_num)