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)
commitc79be4549ae39edc026aa67eb64a25424542943f
treeb0ad99587a85cf9335ae2bff9a7dd94729d3ef4b
parent706767da1bd0726d8fbc62e4818cb29193676a74
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