]> Pileus Git - ~andy/linux/blobdiff - net/packet/af_packet.c
hlist: drop the node parameter from iterators
[~andy/linux] / net / packet / af_packet.c
index c7bfeff10767d010ff2001dcd57bb7ccb68ab3a1..1d6793dbfbae23f8c3f28163c0a67718d489d3ed 100644 (file)
@@ -3263,12 +3263,11 @@ static int packet_getsockopt(struct socket *sock, int level, int optname,
 static int packet_notifier(struct notifier_block *this, unsigned long msg, void *data)
 {
        struct sock *sk;
-       struct hlist_node *node;
        struct net_device *dev = data;
        struct net *net = dev_net(dev);
 
        rcu_read_lock();
-       sk_for_each_rcu(sk, node, &net->packet.sklist) {
+       sk_for_each_rcu(sk, &net->packet.sklist) {
                struct packet_sock *po = pkt_sk(sk);
 
                switch (msg) {