]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Remove duplicate check of message destination node
authorAllan Stephens <allan.stephens@windriver.com>
Wed, 2 Nov 2011 19:08:44 +0000 (15:08 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 24 Feb 2012 22:05:14 +0000 (17:05 -0500)
commite3062fa90d713646120abdb62ff62788cdeff093
tree911b806bdedf7e5e876ac9a09dbaf80f044957ac
parentb6d642e03fb1538d28541dab3aeba42c95ba9ad1
tipc: Remove duplicate check of message destination node

Eliminates a check in the processing of TIPC messages arriving from
off node that ensures the message is destined for this node, since this
check duplicates an earlier check. (The check would be necessary if TIPC
needed to be able to route incoming messages to another node, but the
elimination of multi-cluster support means that this never happens and
all incoming messages are consumed by the receiving node.)

Note: This change involves the elimination of a single "if" statement
with a large "then" clause; consequently, a significant number of lines
end up getting re-indented. In addition, a simple message header access
routine that is no longer referenced is eliminated. However, the only
functional change is the elimination of the single check described above.

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