aboutsummaryrefslogtreecommitdiff
path: root/net/tipc/bearer.c
diff options
context:
space:
mode:
authorGravatar Allan Stephens <allan.stephens@windriver.com> 2011-04-07 11:25:26 -0400
committerGravatar Paul Gortmaker <paul.gortmaker@windriver.com> 2011-09-01 11:16:36 -0400
commit23f0ff906af93be6edb579824474117b232c7cc0 (patch)
treeaf9b52c73b101065e209ae0755cd3be4c1b135b6 /net/tipc/bearer.c
parenttipc: Cosmetic changes to broadcast bearer send routine (diff)
downloadlinux-23f0ff906af93be6edb579824474117b232c7cc0.tar.gz
linux-23f0ff906af93be6edb579824474117b232c7cc0.tar.bz2
linux-23f0ff906af93be6edb579824474117b232c7cc0.zip
tipc: Remove non-executable code to handle broadcast bearer congestion
Eliminates code associated with the sending of unsent broadcast link traffic when the broadcast pseudo-bearer becomes unblocked following a temporary congestion situation. This code is non-executable because the broadcast pseudo-bearer never becomes blocked [see tipc_bcbearer_send()]. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/bearer.c')
-rw-r--r--net/tipc/bearer.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c
index 85eba9c08ee9..e465a92a4f9c 100644
--- a/net/tipc/bearer.c
+++ b/net/tipc/bearer.c
@@ -385,13 +385,9 @@ static int bearer_push(struct tipc_bearer *b_ptr)
void tipc_bearer_lock_push(struct tipc_bearer *b_ptr)
{
- int res;
-
spin_lock_bh(&b_ptr->lock);
- res = bearer_push(b_ptr);
+ bearer_push(b_ptr);
spin_unlock_bh(&b_ptr->lock);
- if (res)
- tipc_bcbearer_push();
}