/* Returns 1 if media name is valid, otherwise 0.  */
static int media_name_valid(const char *name)
/* Returns 1 if media name is valid, otherwise 0.  */
static int media_name_valid(const char *name)
{
	u32 len;
	len = strlen(name);
	if ((len + 1) > TIPC_MAX_MEDIA_NAME)
		return 0;
	return (strspn(name, tipc_alphabet) == len);
}