Patchwork [net-next,08/16] tipc: Optimize re-initialization of port message header templates

mail settings
Submitter Paul Gortmaker
Date April 20, 2012, 9:05 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/154161/
State Accepted
Delegated to: David Miller
Headers show


Paul Gortmaker - April 20, 2012, 9:05 p.m.
From: Allan Stephens <>

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 <>
 net/tipc/port.c |    2 --
 1 file changed, 2 deletions(-)


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)
 	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);