]> Pileus Git - ~andy/linux/blobdiff - net/key/af_key.c
hlist: drop the node parameter from iterators
[~andy/linux] / net / key / af_key.c
index 9ef79851f297999bbd584ba33a539944425cd02e..556fdafdd1ea3fb6d85b44c2e3efeb600b1839b8 100644 (file)
@@ -225,7 +225,6 @@ static int pfkey_broadcast(struct sk_buff *skb, gfp_t allocation,
 {
        struct netns_pfkey *net_pfkey = net_generic(net, pfkey_net_id);
        struct sock *sk;
-       struct hlist_node *node;
        struct sk_buff *skb2 = NULL;
        int err = -ESRCH;
 
@@ -236,7 +235,7 @@ static int pfkey_broadcast(struct sk_buff *skb, gfp_t allocation,
                return -ENOMEM;
 
        rcu_read_lock();
-       sk_for_each_rcu(sk, node, &net_pfkey->table) {
+       sk_for_each_rcu(sk, &net_pfkey->table) {
                struct pfkey_sock *pfk = pfkey_sk(sk);
                int err2;