diff options
author | stephen hemminger <stephen@networkplumber.org> | 2014-01-04 13:49:14 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-04 20:18:50 -0500 |
commit | eec73f1c968d6d6cafa5ca19d53b6618bbd20e1e (patch) | |
tree | d7533f7a54cfa90c3a206a81419100e68ecdd4d7 /net/tipc/bearer.c | |
parent | 9805696399ac4e1a7f59ebccc614cbd5d7dace6d (diff) |
tipc: remove unused code
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>
Diffstat (limited to 'net/tipc/bearer.c')
-rw-r--r-- | net/tipc/bearer.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c index 3bb5f266b0eb..07ed5cc8235d 100644 --- a/net/tipc/bearer.c +++ b/net/tipc/bearer.c @@ -185,25 +185,6 @@ struct tipc_bearer *tipc_bearer_find(const char *name) } /** - * 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 */ struct sk_buff *tipc_bearer_get_names(void) |