]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Optimize detection of duplicate media registration
authorAllan Stephens <allan.stephens@windriver.com>
Thu, 6 Oct 2011 20:40:55 +0000 (16:40 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 27 Dec 2011 16:13:06 +0000 (11:13 -0500)
commitf90e205a787f36a561a7592799fe9f5cea54626a
treeb0ad99587a85cf9335ae2bff9a7dd94729d3ef4b
parent1f0e56f3b4bd023006eb06685cbf0b71ee5e82fa
tipc: Optimize detection of duplicate media registration

Streamlines the detection of an attempt to register a TIPC media structure
using an already registered name or type identifier. The revised logic now
reuses an existing routine to detect an existing name and no longer
unnecessarily manipulates the media type counter during an unsuccessful
registration attempt.

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