diff options
Diffstat (limited to 'net/tipc/node.c')
-rw-r--r-- | net/tipc/node.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/net/tipc/node.c b/net/tipc/node.c index 7c49cd056df7..823e9abb7ef5 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c | |||
@@ -125,16 +125,6 @@ void tipc_node_delete(struct tipc_node *n_ptr) | |||
125 | if (!n_ptr) | 125 | if (!n_ptr) |
126 | return; | 126 | return; |
127 | 127 | ||
128 | #if 0 | ||
129 | /* Not needed because links are already deleted via tipc_bearer_stop() */ | ||
130 | |||
131 | u32 l_num; | ||
132 | |||
133 | for (l_num = 0; l_num < MAX_BEARERS; l_num++) { | ||
134 | link_delete(n_ptr->links[l_num]); | ||
135 | } | ||
136 | #endif | ||
137 | |||
138 | dbg("node %x deleted\n", n_ptr->addr); | 128 | dbg("node %x deleted\n", n_ptr->addr); |
139 | kfree(n_ptr); | 129 | kfree(n_ptr); |
140 | } | 130 | } |
@@ -597,22 +587,6 @@ void tipc_node_remove_router(struct tipc_node *n_ptr, u32 router) | |||
597 | node_lost_contact(n_ptr); | 587 | node_lost_contact(n_ptr); |
598 | } | 588 | } |
599 | 589 | ||
600 | #if 0 | ||
601 | void node_print(struct print_buf *buf, struct tipc_node *n_ptr, char *str) | ||
602 | { | ||
603 | u32 i; | ||
604 | |||
605 | tipc_printf(buf, "\n\n%s", str); | ||
606 | for (i = 0; i < MAX_BEARERS; i++) { | ||
607 | if (!n_ptr->links[i]) | ||
608 | continue; | ||
609 | tipc_printf(buf, "Links[%u]: %x, ", i, n_ptr->links[i]); | ||
610 | } | ||
611 | tipc_printf(buf, "Active links: [%x,%x]\n", | ||
612 | n_ptr->active_links[0], n_ptr->active_links[1]); | ||
613 | } | ||
614 | #endif | ||
615 | |||
616 | u32 tipc_available_nodes(const u32 domain) | 590 | u32 tipc_available_nodes(const u32 domain) |
617 | { | 591 | { |
618 | struct tipc_node *n_ptr; | 592 | struct tipc_node *n_ptr; |