tipc: remove pointless name sanity check and tipc_alphabet array
authorYing Xue <ying.xue@windriver.com>
Thu, 16 Aug 2012 12:09:08 +0000 (12:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Aug 2012 09:26:30 +0000 (02:26 -0700)
commitfc0739385ba10f59105e87a46cc93d9d9a10553c
tree7ae1ac9f233ed40183e6f5f06b5488b076106389
parent4225a398c1352a7a5c14dc07277cb5cc4473983b
tipc: remove pointless name sanity check and tipc_alphabet array

There is no real reason to check whether all letters in the given
media name and network interface name are within the character set
defined in tipc_alphabet array. Even if we eliminate the checking,
the rest of checking conditions in tipc_enable_bearer() can ensure
we do not enable an invalid or illegal bearer.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bearer.c
net/tipc/core.c
net/tipc/core.h
net/tipc/link.c