aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/bearer.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/bearer.c')
-rw-r--r--net/tipc/bearer.c19
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)
185} 185}
186 186
187/** 187/**
188 * tipc_bearer_find_interface - locates bearer object with matching interface name
189 */
190struct tipc_bearer *tipc_bearer_find_interface(const char *if_name)
191{
192 struct tipc_bearer *b_ptr;
193 char *b_if_name;
194 u32 i;
195
196 for (i = 0, b_ptr = tipc_bearers; i < MAX_BEARERS; i++, b_ptr++) {
197 if (!b_ptr->active)
198 continue;
199 b_if_name = strchr(b_ptr->name, ':') + 1;
200 if (!strcmp(b_if_name, if_name))
201 return b_ptr;
202 }
203 return NULL;
204}
205
206/**
207 * tipc_bearer_get_names - record names of bearers in buffer 188 * tipc_bearer_get_names - record names of bearers in buffer
208 */ 189 */
209struct sk_buff *tipc_bearer_get_names(void) 190struct sk_buff *tipc_bearer_get_names(void)