Skip to content

Commit

Permalink
tipc: Eliminate useless check when creating internal message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Allan Stephens authored and Paul Gortmaker committed Jun 24, 2011
1 parent a9948ba commit 15f4e2b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions net/tipc/msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 15f4e2b

Please sign in to comment.