Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15f4e2b3 authored by Allan Stephens's avatar Allan Stephens Committed by Paul Gortmaker
Browse files

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: default avatarAllan Stephens <allan.stephens@windriver.com>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent a9948ba2
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -61,11 +61,9 @@ 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);
}
}

/**
 * tipc_msg_build - create message using specified header and data