aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/port.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/port.c')
-rw-r--r--net/tipc/port.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/tipc/port.c b/net/tipc/port.c
index 360920b3d821..899e08eac2ca 100644
--- a/net/tipc/port.c
+++ b/net/tipc/port.c
@@ -1171,8 +1171,6 @@ int tipc_withdraw(u32 ref, unsigned int scope, struct tipc_name_seq const *seq)
1171 p_ptr = tipc_port_lock(ref); 1171 p_ptr = tipc_port_lock(ref);
1172 if (!p_ptr) 1172 if (!p_ptr)
1173 return -EINVAL; 1173 return -EINVAL;
1174 if (!p_ptr->publ.published)
1175 goto exit;
1176 if (!seq) { 1174 if (!seq) {
1177 list_for_each_entry_safe(publ, tpubl, 1175 list_for_each_entry_safe(publ, tpubl,
1178 &p_ptr->publications, pport_list) { 1176 &p_ptr->publications, pport_list) {
@@ -1199,7 +1197,6 @@ int tipc_withdraw(u32 ref, unsigned int scope, struct tipc_name_seq const *seq)
1199 } 1197 }
1200 if (list_empty(&p_ptr->publications)) 1198 if (list_empty(&p_ptr->publications))
1201 p_ptr->publ.published = 0; 1199 p_ptr->publ.published = 0;
1202exit:
1203 tipc_port_unlock(p_ptr); 1200 tipc_port_unlock(p_ptr);
1204 return res; 1201 return res;
1205} 1202}