summaryrefslogtreecommitdiff
path: root/net/tipc
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2011-05-31 14:35:18 -0400
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-06-24 16:18:17 -0400
commit15f4e2b30372695573bc46102790094a92b3eb11 (patch)
tree0c511d4b1f14571866daeafa7e1fc56c3c52872a /net/tipc
parenta9948ba24f764694413207812d2b2dae46eb7275 (diff)
downloadlinux-3.10-15f4e2b30372695573bc46102790094a92b3eb11.tar.gz
linux-3.10-15f4e2b30372695573bc46102790094a92b3eb11.tar.bz2
linux-3.10-15f4e2b30372695573bc46102790094a92b3eb11.zip
tipc: Eliminate useless check when creating internal message
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>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/msg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/tipc/msg.c b/net/tipc/msg.c
index 03e57bf92c7..83d50967910 100644
--- a/net/tipc/msg.c
+++ b/net/tipc/msg.c
@@ -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);
}
/**