tipc: rename media/msg related definitions
The TIPC_MEDIA_ADDR_SIZE and TIPC_MEDIA_ADDR_OFFSET names are misleading, as they actually define the size and offset of the whole media info field and not the address part. This patch does not have any functional changes. Signed-off-by: Erik Hugne <erik.hugne@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
afaa3f65f6
commit
91e2eb5684
@@ -76,7 +76,7 @@ struct plist;
|
||||
|
||||
#define MAX_MSG_SIZE (MAX_H_SIZE + TIPC_MAX_USER_MSG_SIZE)
|
||||
|
||||
#define TIPC_MEDIA_ADDR_OFFSET 5
|
||||
#define TIPC_MEDIA_INFO_OFFSET 5
|
||||
|
||||
/**
|
||||
* TIPC message buffer code
|
||||
@@ -688,7 +688,7 @@ static inline void msg_set_redundant_link(struct tipc_msg *m, u32 r)
|
||||
|
||||
static inline char *msg_media_addr(struct tipc_msg *m)
|
||||
{
|
||||
return (char *)&m->hdr[TIPC_MEDIA_ADDR_OFFSET];
|
||||
return (char *)&m->hdr[TIPC_MEDIA_INFO_OFFSET];
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user