SCTP: Convert custom hash lists to use hlist.
Convert the custom hash list traversals to use hlist functions. Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
This commit is contained in:
@@ -1137,7 +1137,7 @@ SCTP_STATIC __init int sctp_init(void)
|
||||
}
|
||||
for (i = 0; i < sctp_assoc_hashsize; i++) {
|
||||
rwlock_init(&sctp_assoc_hashtable[i].lock);
|
||||
sctp_assoc_hashtable[i].chain = NULL;
|
||||
INIT_HLIST_HEAD(&sctp_assoc_hashtable[i].chain);
|
||||
}
|
||||
|
||||
/* Allocate and initialize the endpoint hash table. */
|
||||
@@ -1151,7 +1151,7 @@ SCTP_STATIC __init int sctp_init(void)
|
||||
}
|
||||
for (i = 0; i < sctp_ep_hashsize; i++) {
|
||||
rwlock_init(&sctp_ep_hashtable[i].lock);
|
||||
sctp_ep_hashtable[i].chain = NULL;
|
||||
INIT_HLIST_HEAD(&sctp_ep_hashtable[i].chain);
|
||||
}
|
||||
|
||||
/* Allocate and initialize the SCTP port hash table. */
|
||||
@@ -1170,7 +1170,7 @@ SCTP_STATIC __init int sctp_init(void)
|
||||
}
|
||||
for (i = 0; i < sctp_port_hashsize; i++) {
|
||||
spin_lock_init(&sctp_port_hashtable[i].lock);
|
||||
sctp_port_hashtable[i].chain = NULL;
|
||||
INIT_HLIST_HEAD(&sctp_port_hashtable[i].chain);
|
||||
}
|
||||
|
||||
printk(KERN_INFO "SCTP: Hash tables configured "
|
||||
|
Reference in New Issue
Block a user