mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
tipc: remove duplicated code in tipc_msg_create
Remove a duplicate code checking for header size in tipc_msg_create() as it's already being done in tipc_msg_init(). Acked-by: Jon Maloy <jmaloy@redhat.com> Signed-off-by: Hoang Huu Le <hoang.h.le@dektech.com.au> Link: https://lore.kernel.org/r/20210127025123.6390-1-hoang.h.le@dektech.com.au Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
c7f3489bfc
commit
2a9063b7ff
@ -117,10 +117,6 @@ struct sk_buff *tipc_msg_create(uint user, uint type,
|
||||
msg_set_origport(msg, oport);
|
||||
msg_set_destport(msg, dport);
|
||||
msg_set_errcode(msg, errcode);
|
||||
if (hdr_sz > SHORT_H_SIZE) {
|
||||
msg_set_orignode(msg, onode);
|
||||
msg_set_destnode(msg, dnode);
|
||||
}
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user