]> 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)
commitc03be6e5a8458aaf282c5a9532bf08317aba82a8
treeb0ad99587a85cf9335ae2bff9a7dd94729d3ef4b
parent86a6048de9133a78d6a987525ffaa99a255d1b7b
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