diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2011-05-26 13:24:24 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-09-01 11:16:37 -0400 |
commit | ff60af8c16aa3b8ee51a0a6b4c4ea42342d1607d (patch) | |
tree | 9da1d66cc36d000267ea2a80a8ee3bae8215af21 /net | |
parent | 0f38513d22e14f607fc791364856b08cac9f91c9 (diff) |
tipc: Eliminate redundant check when sending messages
Eliminates code in tipc_send_buf_fast() that handles messages
sent to a destination on the current node, since the only caller
of the routine only passes in messages destined for other nodes.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/tipc/link.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c index b43beea54108..bc655f456495 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c | |||
@@ -1032,9 +1032,6 @@ int tipc_send_buf_fast(struct sk_buff *buf, u32 destnode) | |||
1032 | u32 selector = msg_origport(buf_msg(buf)) & 1; | 1032 | u32 selector = msg_origport(buf_msg(buf)) & 1; |
1033 | u32 dummy; | 1033 | u32 dummy; |
1034 | 1034 | ||
1035 | if (destnode == tipc_own_addr) | ||
1036 | return tipc_port_recv_msg(buf); | ||
1037 | |||
1038 | read_lock_bh(&tipc_net_lock); | 1035 | read_lock_bh(&tipc_net_lock); |
1039 | n_ptr = tipc_node_find(destnode); | 1036 | n_ptr = tipc_node_find(destnode); |
1040 | if (likely(n_ptr)) { | 1037 | if (likely(n_ptr)) { |