summaryrefslogtreecommitdiffstats
path: root/net/tipc/port.h
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2012-04-17 18:36:42 -0400
committerPaul Gortmaker <paul.gortmaker@windriver.com>2012-04-19 15:46:43 -0400
commitd0e17fedc2aeb0c4db09434787ef6d432582e050 (patch)
tree5e64f449fc309a6fb9be4e5b954f8ce286abfa62 /net/tipc/port.h
parentf21536d1e73c36b37c50f71013c67f19db77d4b8 (diff)
downloadop-kernel-dev-d0e17fedc2aeb0c4db09434787ef6d432582e050.zip
op-kernel-dev-d0e17fedc2aeb0c4db09434787ef6d432582e050.tar.gz
tipc: delete duplicate peerport/peernode helper functions
Prior to commit 23dd4cce387124ec3ea06ca30d17854ae4d9b772 "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>
Diffstat (limited to 'net/tipc/port.h')
-rw-r--r--net/tipc/port.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/net/tipc/port.h b/net/tipc/port.h
index 9b88531..0a632a6f 100644
--- a/net/tipc/port.h
+++ b/net/tipc/port.h
@@ -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);
OpenPOWER on IntegriCloud