hlist: drop the node parameter from iterators
[deliverable/linux.git] / net / unix / diag.c
index 5ac19dc1d5e4ffe31394f7f8721efb7a0c2073bb..d591091603bfe4da1d6a87810287bdd5aaecc6da 100644 (file)
@@ -192,10 +192,9 @@ static int unix_diag_dump(struct sk_buff *skb, struct netlink_callback *cb)
             slot < ARRAY_SIZE(unix_socket_table);
             s_num = 0, slot++) {
                struct sock *sk;
-               struct hlist_node *node;
 
                num = 0;
-               sk_for_each(sk, node, &unix_socket_table[slot]) {
+               sk_for_each(sk, &unix_socket_table[slot]) {
                        if (!net_eq(sock_net(sk), net))
                                continue;
                        if (num < s_num)
@@ -226,9 +225,7 @@ static struct sock *unix_lookup_by_ino(int ino)
 
        spin_lock(&unix_table_lock);
        for (i = 0; i < ARRAY_SIZE(unix_socket_table); i++) {
-               struct hlist_node *node;
-
-               sk_for_each(sk, node, &unix_socket_table[i])
+               sk_for_each(sk, &unix_socket_table[i])
                        if (ino == sock_i_ino(sk)) {
                                sock_hold(sk);
                                spin_unlock(&unix_table_lock);
This page took 0.023861 seconds and 5 git commands to generate.