tipc: remove unused code
authorstephen hemminger <stephen@networkplumber.org>
Sat, 4 Jan 2014 21:49:14 +0000 (13:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jan 2014 01:18:50 +0000 (20:18 -0500)
Remove dead code;
       tipc_bearer_find_interface
       tipc_node_redundant_links

This may break out of tree version of TIPC if there still is one.
But that maybe a good thing :-)

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bearer.c
net/tipc/bearer.h
net/tipc/node.c
net/tipc/node.h

index 3bb5f26..07ed5cc 100644 (file)
@@ -184,25 +184,6 @@ struct tipc_bearer *tipc_bearer_find(const char *name)
        return NULL;
 }
 
-/**
- * tipc_bearer_find_interface - locates bearer object with matching interface name
- */
-struct tipc_bearer *tipc_bearer_find_interface(const char *if_name)
-{
-       struct tipc_bearer *b_ptr;
-       char *b_if_name;
-       u32 i;
-
-       for (i = 0, b_ptr = tipc_bearers; i < MAX_BEARERS; i++, b_ptr++) {
-               if (!b_ptr->active)
-                       continue;
-               b_if_name = strchr(b_ptr->name, ':') + 1;
-               if (!strcmp(b_if_name, if_name))
-                       return b_ptr;
-       }
-       return NULL;
-}
-
 /**
  * tipc_bearer_get_names - record names of bearers in buffer
  */
index fa95c34..410efb1 100644 (file)
@@ -190,7 +190,6 @@ struct sk_buff *tipc_bearer_get_names(void);
 void tipc_bearer_add_dest(struct tipc_bearer *b_ptr, u32 dest);
 void tipc_bearer_remove_dest(struct tipc_bearer *b_ptr, u32 dest);
 struct tipc_bearer *tipc_bearer_find(const char *name);
-struct tipc_bearer *tipc_bearer_find_interface(const char *if_name);
 struct tipc_media *tipc_media_find(const char *name);
 int tipc_bearer_setup(void);
 void tipc_bearer_cleanup(void);
index bf1ac89..e167d26 100644 (file)
@@ -235,11 +235,6 @@ int tipc_node_active_links(struct tipc_node *n_ptr)
        return n_ptr->active_links[0] != NULL;
 }
 
-int tipc_node_redundant_links(struct tipc_node *n_ptr)
-{
-       return n_ptr->working_links > 1;
-}
-
 int tipc_node_is_up(struct tipc_node *n_ptr)
 {
        return tipc_node_active_links(n_ptr);
index e5e96c0..d4bb654 100644 (file)
@@ -115,7 +115,6 @@ void tipc_node_detach_link(struct tipc_node *n_ptr, struct tipc_link *l_ptr);
 void tipc_node_link_down(struct tipc_node *n_ptr, struct tipc_link *l_ptr);
 void tipc_node_link_up(struct tipc_node *n_ptr, struct tipc_link *l_ptr);
 int tipc_node_active_links(struct tipc_node *n_ptr);
-int tipc_node_redundant_links(struct tipc_node *n_ptr);
 int tipc_node_is_up(struct tipc_node *n_ptr);
 struct sk_buff *tipc_node_get_links(const void *req_tlv_area, int req_tlv_space);
 struct sk_buff *tipc_node_get_nodes(const void *req_tlv_area, int req_tlv_space);