]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Minor optimizations to name table translation code
authorAllan Stephens <allan.stephens@windriver.com>
Fri, 3 Sep 2010 08:33:39 +0000 (08:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Sep 2010 01:12:56 +0000 (18:12 -0700)
commit03732b71de156186ddb08467f31344b678fe1b3c
treeb901d720e08c5762a0bd52b404393bb8532a6a15
parent02d8fab8d0820f4a36a9b9d65ced97e6409ceeeb
tipc: Minor optimizations to name table translation code

Optimizes TIPC's name table translation code to avoid unnecessary
manipulation of the node address field of the resulting port id when
name translation fails.  This change is possible because a valid port
id cannot have a reference field of zero, so examining the reference
only is sufficient to determine if the translation was successful.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/name_table.c
net/tipc/port.c