diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2012-04-17 18:17:35 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-04-19 15:46:41 -0400 |
commit | 5eb0a291fbde1842b8e3f241183a0e2c1399c600 (patch) | |
tree | e09f18e68ae0a4ee5133292441a6d03a72c0b5b4 /net/tipc/port.c | |
parent | d4f5c12cdf43ce70731d5abfb6400bfb1be392d3 (diff) |
tipc: Optimize re-initialization of port message header templates
Removes an unnecessary check in the logic that updates the message
header template for existing ports when a node's network address is
first assigned. There is no longer any need to check to see if the
node's network address has actually changed since the calling routine
has already verified that this is so.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/port.c')
-rw-r--r-- | net/tipc/port.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/tipc/port.c b/net/tipc/port.c index 94d2904cce66..6156c6740f67 100644 --- a/net/tipc/port.c +++ b/net/tipc/port.c | |||
@@ -646,8 +646,6 @@ void tipc_port_reinit(void) | |||
646 | spin_lock_bh(&tipc_port_list_lock); | 646 | spin_lock_bh(&tipc_port_list_lock); |
647 | list_for_each_entry(p_ptr, &ports, port_list) { | 647 | list_for_each_entry(p_ptr, &ports, port_list) { |
648 | msg = &p_ptr->phdr; | 648 | msg = &p_ptr->phdr; |
649 | if (msg_orignode(msg) == tipc_own_addr) | ||
650 | break; | ||
651 | msg_set_prevnode(msg, tipc_own_addr); | 649 | msg_set_prevnode(msg, tipc_own_addr); |
652 | msg_set_orignode(msg, tipc_own_addr); | 650 | msg_set_orignode(msg, tipc_own_addr); |
653 | } | 651 | } |