From: Allan Stephens Date: Mon, 26 Jun 2006 06:49:33 +0000 (-0700) Subject: [TIPC]: Withdrawing all names from nameless port now returns success, not error X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=a7513528cd0deeb62624c229c21054472ec976e6;p=deliverable%2Flinux.git [TIPC]: Withdrawing all names from nameless port now returns success, not error Signed-off-by: Allan Stephens Signed-off-by: Per Liden Signed-off-by: David S. Miller --- 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) p_ptr = tipc_port_lock(ref); if (!p_ptr) return -EINVAL; - if (!p_ptr->publ.published) - goto exit; if (!seq) { list_for_each_entry_safe(publ, tpubl, &p_ptr->publications, pport_list) { @@ -1199,7 +1197,6 @@ int tipc_withdraw(u32 ref, unsigned int scope, struct tipc_name_seq const *seq) } if (list_empty(&p_ptr->publications)) p_ptr->publ.published = 0; -exit: tipc_port_unlock(p_ptr); return res; }