aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/node.c
diff options
context:
space:
mode:
authorAllan Stephens <Allan.Stephens@windriver.com>2011-02-23 14:13:41 -0500
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-03-13 16:35:16 -0400
commitf1379173326de4c745c4f610501486e4f3bd9248 (patch)
tree80c3fca29ae990040b8812f810ce7bf6665d5059 /net/tipc/node.c
parent431697eb60d2d36614096aff12bd1b826a9f9bc1 (diff)
tipc: Cosmetic changes to node subscription code
Relocates the code that notifies users of node subscriptions so that it is adjacent to the rest of the routines that implement TIPC's node subscription capability. Renames the name table routine that is invoked by a node subscription to better reflect its purpose and to be consistent with other, similar name table routines. These changes are cosmetic in nature, and do not alter the behavior of TIPC. Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/node.c')
-rw-r--r--net/tipc/node.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/net/tipc/node.c b/net/tipc/node.c
index 8926caaf1fc5..713ab5d7c54f 100644
--- a/net/tipc/node.c
+++ b/net/tipc/node.c
@@ -327,7 +327,6 @@ static void node_cleanup_finished(unsigned long node_addr)
327 327
328static void node_lost_contact(struct tipc_node *n_ptr) 328static void node_lost_contact(struct tipc_node *n_ptr)
329{ 329{
330 struct tipc_node_subscr *ns;
331 char addr_string[16]; 330 char addr_string[16];
332 u32 i; 331 u32 i;
333 332
@@ -365,13 +364,7 @@ static void node_lost_contact(struct tipc_node *n_ptr)
365 } 364 }
366 365
367 /* Notify subscribers */ 366 /* Notify subscribers */
368 list_for_each_entry(ns, &n_ptr->nsub, nodesub_list) { 367 tipc_nodesub_notify(n_ptr);
369 if (ns->handle_node_down) {
370 tipc_k_signal((Handler)ns->handle_node_down,
371 (unsigned long)ns->usr_handle);
372 ns->handle_node_down = NULL;
373 }
374 }
375 368
376 /* Prevent re-contact with node until all cleanup is done */ 369 /* Prevent re-contact with node until all cleanup is done */
377 370