diff options
author | Hoang Huu Le <hoang.h.le@dektech.com.au> | 2021-01-27 03:51:23 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-28 03:50:07 +0100 |
commit | 2a9063b7fface7e665e9be62e14aa8b0ed207e2f (patch) | |
tree | 63587ef1ff68e68d59f02ebbebef2b1ea7ca26b5 /net/tipc | |
parent | Merge branch 'net-bridge-multicast-per-port-eht-hosts-limit' (diff) | |
download | linux-2a9063b7fface7e665e9be62e14aa8b0ed207e2f.tar.xz linux-2a9063b7fface7e665e9be62e14aa8b0ed207e2f.zip |
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>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/msg.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/tipc/msg.c b/net/tipc/msg.c index 2aca86021df5..e9263280a2d4 100644 --- a/net/tipc/msg.c +++ b/net/tipc/msg.c @@ -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; } |