Commit 742e0383 authored by Wu Fengguang's avatar Wu Fengguang Committed by David S. Miller

tipc: link_is_bc_sndlink() can be static

TO: "David S. Miller" <davem@davemloft.net>
CC: netdev@vger.kernel.org
CC: Jon Maloy <jon.maloy@ericsson.com>
CC: Ying Xue <ying.xue@windriver.com>
CC: tipc-discussion@lists.sourceforge.net
CC: linux-kernel@vger.kernel.org
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Acked-by: default avatarJon Maloy <jon.maloy@ericsson.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 687f079a
...@@ -163,12 +163,12 @@ bool tipc_link_is_blocked(struct tipc_link *l) ...@@ -163,12 +163,12 @@ bool tipc_link_is_blocked(struct tipc_link *l)
return l->state & (LINK_RESETTING | LINK_PEER_RESET | LINK_FAILINGOVER); return l->state & (LINK_RESETTING | LINK_PEER_RESET | LINK_FAILINGOVER);
} }
bool link_is_bc_sndlink(struct tipc_link *l) static bool link_is_bc_sndlink(struct tipc_link *l)
{ {
return !l->bc_sndlink; return !l->bc_sndlink;
} }
bool link_is_bc_rcvlink(struct tipc_link *l) static bool link_is_bc_rcvlink(struct tipc_link *l)
{ {
return ((l->bc_rcvlink == l) && !link_is_bc_sndlink(l)); return ((l->bc_rcvlink == l) && !link_is_bc_sndlink(l));
} }
...@@ -1364,7 +1364,7 @@ static bool tipc_link_build_bc_proto_msg(struct tipc_link *l, bool bcast, ...@@ -1364,7 +1364,7 @@ static bool tipc_link_build_bc_proto_msg(struct tipc_link *l, bool bcast,
* Give a newly added peer node the sequence number where it should * Give a newly added peer node the sequence number where it should
* start receiving and acking broadcast packets. * start receiving and acking broadcast packets.
*/ */
void tipc_link_build_bc_init_msg(struct tipc_link *l, static void tipc_link_build_bc_init_msg(struct tipc_link *l,
struct sk_buff_head *xmitq) struct sk_buff_head *xmitq)
{ {
struct sk_buff_head list; struct sk_buff_head list;
......
...@@ -1083,7 +1083,7 @@ int tipc_node_xmit_skb(struct net *net, struct sk_buff *skb, u32 dnode, ...@@ -1083,7 +1083,7 @@ int tipc_node_xmit_skb(struct net *net, struct sk_buff *skb, u32 dnode,
* *
* Invoked with no locks held. * Invoked with no locks held.
*/ */
void tipc_node_bc_rcv(struct net *net, struct sk_buff *skb, int bearer_id) static void tipc_node_bc_rcv(struct net *net, struct sk_buff *skb, int bearer_id)
{ {
int rc; int rc;
struct sk_buff_head xmitq; struct sk_buff_head xmitq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment