tipc: Optimize message initialization routine
This patch eliminates the rarely-used "error code" argument when initializing a TIPC message header, since the default value of zero is the desired result in most cases; the few exceptional cases now set the error code explicitly. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
9c396a7bfb
commit
7571521756
@ -276,7 +276,7 @@ static void bclink_send_nack(struct node *n_ptr)
|
||||
if (buf) {
|
||||
msg = buf_msg(buf);
|
||||
msg_init(msg, BCAST_PROTOCOL, STATE_MSG,
|
||||
TIPC_OK, INT_H_SIZE, n_ptr->addr);
|
||||
INT_H_SIZE, n_ptr->addr);
|
||||
msg_set_mc_netid(msg, tipc_net_id);
|
||||
msg_set_bcast_ack(msg, mod(n_ptr->bclink.last_in));
|
||||
msg_set_bcgap_after(msg, n_ptr->bclink.gap_after);
|
||||
|
Reference in New Issue
Block a user