tipc: delete duplicate peerport/peernode helper functions
Prior to commit 23dd4cce38
"tipc: Combine port structure with tipc_port structure"
there was a need for the two sets of helper functions. But
now they are just duplicates. Remove the globally visible
ones, and mark the remaining ones as inline.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
This commit is contained in:

committed by
Paul Gortmaker

parent
f21536d1e7
commit
d0e17fedc2
@@ -257,16 +257,6 @@ static inline struct tipc_port *tipc_port_deref(u32 ref)
|
||||
return (struct tipc_port *)tipc_ref_deref(ref);
|
||||
}
|
||||
|
||||
static inline u32 tipc_peer_port(struct tipc_port *p_ptr)
|
||||
{
|
||||
return msg_destport(&p_ptr->phdr);
|
||||
}
|
||||
|
||||
static inline u32 tipc_peer_node(struct tipc_port *p_ptr)
|
||||
{
|
||||
return msg_destnode(&p_ptr->phdr);
|
||||
}
|
||||
|
||||
static inline int tipc_port_congested(struct tipc_port *p_ptr)
|
||||
{
|
||||
return (p_ptr->sent - p_ptr->acked) >= (TIPC_FLOW_CONTROL_WIN * 2);
|
||||
|
Reference in New Issue
Block a user