tipc: Streamline media registration error checking
authorAllan Stephens <allan.stephens@windriver.com>
Fri, 7 Oct 2011 13:54:44 +0000 (09:54 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 27 Dec 2011 16:13:06 +0000 (11:13 -0500)
commit6c349210101352103d9055636845155bc801ae9b
tree530ca1ca9b5fa3bb8092b80a6f875e3a14c5f977
parenta31abe8daee5dd618aecb1484dbe9bf68c5c8a4a
tipc: Streamline media registration error checking

Simplifies error handling performed during media registration, since
TIPC no longer supports the dynamic addition of new media types that
are potentially error-prone. These simplifications include the following:

1) No longer check for premature registration of a new media type.
2) No longer check for negative link priority values (which was pointless
   since such values are unsigned, and could cause a compiler warning).
3) No longer generate a warning describing the exact cause of any
   registration failure (just warns that overall registration failed).

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/bearer.c