Skip to content

Commit

Permalink
tipc: Eliminate redundant check when sending messages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Allan Stephens authored and Paul Gortmaker committed Sep 1, 2011
1 parent 0f38513 commit ff60af8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/tipc/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -1032,9 +1032,6 @@ int tipc_send_buf_fast(struct sk_buff *buf, u32 destnode)
u32 selector = msg_origport(buf_msg(buf)) & 1;
u32 dummy;

if (destnode == tipc_own_addr)
return tipc_port_recv_msg(buf);

read_lock_bh(&tipc_net_lock);
n_ptr = tipc_node_find(destnode);
if (likely(n_ptr)) {
Expand Down

0 comments on commit ff60af8

Please sign in to comment.