From: Allan Stephens Date: Tue, 17 Apr 2012 22:17:35 +0000 (-0400) Subject: tipc: Optimize re-initialization of port message header templates X-Git-Tag: v3.5-rc1~109^2~370^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5eb0a291fbde1842b8e3f241183a0e2c1399c600;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Paul Gortmaker --- diff --git a/net/tipc/port.c b/net/tipc/port.c index 94d2904..6156c67 100644 --- a/net/tipc/port.c +++ b/net/tipc/port.c @@ -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); }