Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214296
b: refs/heads/master
c: 5d9c54c
h: refs/heads/master
v: v3
  • Loading branch information
Allan Stephens authored and David S. Miller committed Sep 7, 2010
1 parent 250f20e commit b053210
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dcfc5d787a24b9a20be3e18e3dbbab5280d35e38
refs/heads/master: 5d9c54c1e9ececcf7e99c4f014f9bec7ee3a7def
4 changes: 1 addition & 3 deletions trunk/net/tipc/name_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,7 @@ struct publication *tipc_nametbl_remove_publ(u32 type, u32 lower,
}

/*
* tipc_nametbl_translate(): Translate tipc_name -> tipc_portid.
* Very time-critical.
* tipc_nametbl_translate - translate name to port id
*
* Note: on entry 'destnode' is the search domain used during translation;
* on exit it passes back the node address of the matching port (if any)
Expand Down Expand Up @@ -685,7 +684,6 @@ u32 tipc_nametbl_translate(u32 type, u32 instance, u32 *destnode)
}
spin_unlock_bh(&seq->lock);
not_found:
*destnode = 0;
read_unlock_bh(&tipc_nametbl_lock);
return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/tipc/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@ int tipc_forward2name(u32 ref,
msg_set_destnode(msg, destnode);
msg_set_destport(msg, destport);

if (likely(destport || destnode)) {
if (likely(destport)) {
p_ptr->sent++;
if (likely(destnode == tipc_own_addr))
return tipc_port_recv_sections(p_ptr, num_sect, msg_sect);
Expand Down Expand Up @@ -1542,7 +1542,7 @@ int tipc_forward_buf2name(u32 ref,
skb_push(buf, LONG_H_SIZE);
skb_copy_to_linear_data(buf, msg, LONG_H_SIZE);
msg_dbg(buf_msg(buf),"PREP:");
if (likely(destport || destnode)) {
if (likely(destport)) {
p_ptr->sent++;
if (destnode == tipc_own_addr)
return tipc_port_recv_msg(buf);
Expand Down

0 comments on commit b053210

Please sign in to comment.