/* bearer_find - locates bearer object with matching bearer name  */
static struct bearer* bearer_find(const char *name)
/* bearer_find - locates bearer object with matching bearer name  */
static struct bearer* bearer_find(const char *name)
{
	struct bearer *b_ptr;
	u32 i;
	if (tipc_mode != TIPC_NET_MODE)
		return NULL;
	for (i = 0, b_ptr = tipc_bearers; i < MAX_BEARERS; i++, b_ptr++) {
		if (b_ptr->active && (!strcmp(b_ptr->publ.name, name)))
			return b_ptr;
	}
	return NULL;
}