aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2006-06-25 23:49:33 -0700
committerDavid S. Miller <davem@davemloft.net>2006-06-25 23:49:33 -0700
commita7513528cd0deeb62624c229c21054472ec976e6 (patch)
tree2e1f0ff78db589e53f260b7b3845e27e62b29ac8
parent51f9cc1ff8aa0866ff8fb3c06be4c64b5edbb2e8 (diff)
downloadkernel_goldelico_gta04-a7513528cd0deeb62624c229c21054472ec976e6.zip
kernel_goldelico_gta04-a7513528cd0deeb62624c229c21054472ec976e6.tar.gz
kernel_goldelico_gta04-a7513528cd0deeb62624c229c21054472ec976e6.tar.bz2
[TIPC]: Withdrawing all names from nameless port now returns success, not error
Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Per Liden <per.liden@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-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 360920b..899e08e 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;
}