tipc: Eliminate useless check when creating internal message
authorAllan Stephens <allan.stephens@windriver.com>
Tue, 31 May 2011 18:35:18 +0000 (14:35 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 24 Jun 2011 20:18:17 +0000 (16:18 -0400)
Gets rid of code that allows tipc_msg_init() to create a short
payload message header. This optimization is possible because
there are no longer any callers who require this capability.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/msg.c

index 03e57bf92c732b8d278fbf1bcfb0491b23f6ac34..83d50967910c6a61bf276742aeee957959796406 100644 (file)
@@ -61,10 +61,8 @@ void tipc_msg_init(struct tipc_msg *m, u32 user, u32 type,
        msg_set_size(m, hsize);
        msg_set_prevnode(m, tipc_own_addr);
        msg_set_type(m, type);
-       if (!msg_short(m)) {
-               msg_set_orignode(m, tipc_own_addr);
-               msg_set_destnode(m, destnode);
-       }
+       msg_set_orignode(m, tipc_own_addr);
+       msg_set_destnode(m, destnode);
 }
 
 /**