Skip to content

Commit d901a42

Browse files
ajstephensPaul Gortmaker
authored andcommitted
tipc: Eliminate unnecessary constant for neighbor discovery msg size
Eliminates an unnecessary constant that defines the size of a LINK_CONFIG message, and uses one of the existing standard message size symbols in its place. (The defunct constant was located in the wrong place anyway, since it was grouped with other constants that define message users instead of message sizes.) Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
1 parent a2b58de commit d901a42

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎net/tipc/discover.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ static struct sk_buff *tipc_disc_init_msg(u32 type,
7575
u32 dest_domain,
7676
struct tipc_bearer *b_ptr)
7777
{
78-
struct sk_buff *buf = tipc_buf_acquire(DSC_H_SIZE);
78+
struct sk_buff *buf = tipc_buf_acquire(INT_H_SIZE);
7979
struct tipc_msg *msg;
8080

8181
if (buf) {
8282
msg = buf_msg(buf);
83-
tipc_msg_init(msg, LINK_CONFIG, type, DSC_H_SIZE, dest_domain);
83+
tipc_msg_init(msg, LINK_CONFIG, type, INT_H_SIZE, dest_domain);
8484
msg_set_non_seq(msg, 1);
8585
msg_set_dest_domain(msg, dest_domain);
8686
msg_set_bc_netid(msg, tipc_net_id);

‎net/tipc/msg.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,6 @@ static inline struct tipc_msg *msg_get_wrapped(struct tipc_msg *m)
525525
#define NAME_DISTRIBUTOR 11
526526
#define MSG_FRAGMENTER 12
527527
#define LINK_CONFIG 13
528-
#define DSC_H_SIZE 40
529528

530529
/*
531530
* Connection management protocol messages

0 commit comments

Comments
 (0)