hlist: drop the node parameter from iterators
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / ipx / ipx_proc.c
index 02ff7f2f60d4b2bd566be9b92b84ca42851221b4..65e8833a251097885ca2c84fbb7bd761b1510a69 100644 (file)
@@ -103,19 +103,18 @@ out:
 static __inline__ struct sock *ipx_get_socket_idx(loff_t pos)
 {
        struct sock *s = NULL;
-       struct hlist_node *node;
        struct ipx_interface *i;
 
        list_for_each_entry(i, &ipx_interfaces, node) {
                spin_lock_bh(&i->if_sklist_lock);
-               sk_for_each(s, node, &i->if_sklist) {
+               sk_for_each(s, &i->if_sklist) {
                        if (!pos)
                                break;
                        --pos;
                }
                spin_unlock_bh(&i->if_sklist_lock);
                if (!pos) {
-                       if (node)
+                       if (s)
                                goto found;
                        break;
                }