aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/link.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/link.c')
-rw-r--r--net/tipc/link.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c
index d1a764b9b2d8..a42f4a1d3cd1 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
@@ -327,8 +327,6 @@ static int link_schedule_port(struct tipc_link *l_ptr, u32 origport, u32 sz)
327 spin_lock_bh(&tipc_port_list_lock); 327 spin_lock_bh(&tipc_port_list_lock);
328 p_ptr = tipc_port_lock(origport); 328 p_ptr = tipc_port_lock(origport);
329 if (p_ptr) { 329 if (p_ptr) {
330 if (!p_ptr->wakeup)
331 goto exit;
332 if (!list_empty(&p_ptr->wait_list)) 330 if (!list_empty(&p_ptr->wait_list))
333 goto exit; 331 goto exit;
334 p_ptr->congested = 1; 332 p_ptr->congested = 1;
@@ -363,7 +361,7 @@ void tipc_link_wakeup_ports(struct tipc_link *l_ptr, int all)
363 list_del_init(&p_ptr->wait_list); 361 list_del_init(&p_ptr->wait_list);
364 spin_lock_bh(p_ptr->lock); 362 spin_lock_bh(p_ptr->lock);
365 p_ptr->congested = 0; 363 p_ptr->congested = 0;
366 p_ptr->wakeup(p_ptr); 364 tipc_port_wakeup(p_ptr);
367 win -= p_ptr->waiting_pkts; 365 win -= p_ptr->waiting_pkts;
368 spin_unlock_bh(p_ptr->lock); 366 spin_unlock_bh(p_ptr->lock);
369 } 367 }