diff options
Diffstat (limited to 'net/rds/connection.c')
-rw-r--r-- | net/rds/connection.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/net/rds/connection.c b/net/rds/connection.c index 9e07c756d1f9..642ad42c416b 100644 --- a/net/rds/connection.c +++ b/net/rds/connection.c | |||
@@ -69,9 +69,8 @@ static struct rds_connection *rds_conn_lookup(struct hlist_head *head, | |||
69 | struct rds_transport *trans) | 69 | struct rds_transport *trans) |
70 | { | 70 | { |
71 | struct rds_connection *conn, *ret = NULL; | 71 | struct rds_connection *conn, *ret = NULL; |
72 | struct hlist_node *pos; | ||
73 | 72 | ||
74 | hlist_for_each_entry_rcu(conn, pos, head, c_hash_node) { | 73 | hlist_for_each_entry_rcu(conn, head, c_hash_node) { |
75 | if (conn->c_faddr == faddr && conn->c_laddr == laddr && | 74 | if (conn->c_faddr == faddr && conn->c_laddr == laddr && |
76 | conn->c_trans == trans) { | 75 | conn->c_trans == trans) { |
77 | ret = conn; | 76 | ret = conn; |
@@ -376,7 +375,6 @@ static void rds_conn_message_info(struct socket *sock, unsigned int len, | |||
376 | int want_send) | 375 | int want_send) |
377 | { | 376 | { |
378 | struct hlist_head *head; | 377 | struct hlist_head *head; |
379 | struct hlist_node *pos; | ||
380 | struct list_head *list; | 378 | struct list_head *list; |
381 | struct rds_connection *conn; | 379 | struct rds_connection *conn; |
382 | struct rds_message *rm; | 380 | struct rds_message *rm; |
@@ -390,7 +388,7 @@ static void rds_conn_message_info(struct socket *sock, unsigned int len, | |||
390 | 388 | ||
391 | for (i = 0, head = rds_conn_hash; i < ARRAY_SIZE(rds_conn_hash); | 389 | for (i = 0, head = rds_conn_hash; i < ARRAY_SIZE(rds_conn_hash); |
392 | i++, head++) { | 390 | i++, head++) { |
393 | hlist_for_each_entry_rcu(conn, pos, head, c_hash_node) { | 391 | hlist_for_each_entry_rcu(conn, head, c_hash_node) { |
394 | if (want_send) | 392 | if (want_send) |
395 | list = &conn->c_send_queue; | 393 | list = &conn->c_send_queue; |
396 | else | 394 | else |
@@ -439,7 +437,6 @@ void rds_for_each_conn_info(struct socket *sock, unsigned int len, | |||
439 | { | 437 | { |
440 | uint64_t buffer[(item_len + 7) / 8]; | 438 | uint64_t buffer[(item_len + 7) / 8]; |
441 | struct hlist_head *head; | 439 | struct hlist_head *head; |
442 | struct hlist_node *pos; | ||
443 | struct rds_connection *conn; | 440 | struct rds_connection *conn; |
444 | size_t i; | 441 | size_t i; |
445 | 442 | ||
@@ -450,7 +447,7 @@ void rds_for_each_conn_info(struct socket *sock, unsigned int len, | |||
450 | 447 | ||
451 | for (i = 0, head = rds_conn_hash; i < ARRAY_SIZE(rds_conn_hash); | 448 | for (i = 0, head = rds_conn_hash; i < ARRAY_SIZE(rds_conn_hash); |
452 | i++, head++) { | 449 | i++, head++) { |
453 | hlist_for_each_entry_rcu(conn, pos, head, c_hash_node) { | 450 | hlist_for_each_entry_rcu(conn, head, c_hash_node) { |
454 | 451 | ||
455 | /* XXX no c_lock usage.. */ | 452 | /* XXX no c_lock usage.. */ |
456 | if (!visitor(conn, buffer)) | 453 | if (!visitor(conn, buffer)) |