diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2011-11-02 15:08:44 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-02-24 17:05:14 -0500 |
commit | c74a46110fd5f97bf9299e68e9ed0453bdacb181 (patch) | |
tree | 911b806bdedf7e5e876ac9a09dbaf80f044957ac /net/tipc/msg.h | |
parent | 97878a405c0ffe0f6433e1fb51834d4619ece025 (diff) | |
download | linux-3.10-c74a46110fd5f97bf9299e68e9ed0453bdacb181.tar.gz linux-3.10-c74a46110fd5f97bf9299e68e9ed0453bdacb181.tar.bz2 linux-3.10-c74a46110fd5f97bf9299e68e9ed0453bdacb181.zip |
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>
Diffstat (limited to 'net/tipc/msg.h')
-rw-r--r-- | net/tipc/msg.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index 2ec13b73181..eba524e34a6 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h @@ -384,11 +384,6 @@ static inline void msg_set_destnode(struct tipc_msg *m, u32 a) msg_set_word(m, 7, a); } -static inline int msg_is_dest(struct tipc_msg *m, u32 d) -{ - return msg_short(m) || (msg_destnode(m) == d); -} - static inline u32 msg_nametype(struct tipc_msg *m) { return msg_word(m, 8); |