]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4dd8bb20b799db3f9d839e214fec574e40e4ad3
tree530ca1ca9b5fa3bb8092b80a6f875e3a14c5f977
parent5fcf622d9943c595fe5ce27b9fa1612506b727f5
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