[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210127025123.6390-1-hoang.h.le@dektech.com.au>
Date: Wed, 27 Jan 2021 09:51:23 +0700
From: Hoang Huu Le <hoang.h.le@...tech.com.au>
To: netdev@...r.kernel.org, ying.xue@...driver.com
Cc: maloy@...jonn.com, jmaloy@...hat.com
Subject: [net-next] 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@...hat.com>
Signed-off-by: Hoang Huu Le <hoang.h.le@...tech.com.au>
---
net/tipc/msg.c | 4 ----
1 file changed, 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;
}
--
2.25.1
Powered by blists - more mailing lists