Commit 15f4e2b30372695573bc46102790094a92b3eb11
Committed by
Paul Gortmaker
1 parent
a9948ba24f
Exists in
master
and in
6 other branches
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>
Showing 1 changed file with 2 additions and 4 deletions Side-by-side Diff
net/tipc/msg.c
... | ... | @@ -61,10 +61,8 @@ |
61 | 61 | msg_set_size(m, hsize); |
62 | 62 | msg_set_prevnode(m, tipc_own_addr); |
63 | 63 | msg_set_type(m, type); |
64 | - if (!msg_short(m)) { | |
65 | - msg_set_orignode(m, tipc_own_addr); | |
66 | - msg_set_destnode(m, destnode); | |
67 | - } | |
64 | + msg_set_orignode(m, tipc_own_addr); | |
65 | + msg_set_destnode(m, destnode); | |
68 | 66 | } |
69 | 67 | |
70 | 68 | /** |