]> Pileus Git - ~andy/linux/commitdiff
tipc: Optimize re-initialization of port message header templates
authorAllan Stephens <allan.stephens@windriver.com>
Tue, 17 Apr 2012 22:17:35 +0000 (18:17 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 19 Apr 2012 19:46:41 +0000 (15:46 -0400)
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>
net/tipc/port.c

index 94d2904cce668b678b9688ff7da5309100609617..6156c6740f676313218544fb9d51818b2645d141 100644 (file)
@@ -646,8 +646,6 @@ void tipc_port_reinit(void)
        spin_lock_bh(&tipc_port_list_lock);
        list_for_each_entry(p_ptr, &ports, port_list) {
                msg = &p_ptr->phdr;
-               if (msg_orignode(msg) == tipc_own_addr)
-                       break;
                msg_set_prevnode(msg, tipc_own_addr);
                msg_set_orignode(msg, tipc_own_addr);
        }