projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51f9cc1
)
[TIPC]: Withdrawing all names from nameless port now returns success, not error
author
Allan Stephens
<allan.stephens@windriver.com>
Mon, 26 Jun 2006 06:49:33 +0000
(23:49 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 26 Jun 2006 06:49:33 +0000
(23:49 -0700)
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>
net/tipc/port.c
patch
|
blob
|
blame
|
history
diff --git
a/net/tipc/port.c
b/net/tipc/port.c
index 360920b3d821be3a711c9710c59d3ae99d223a99..899e08eac2ca93003189a5c552c49f5f6b3ca4d0 100644
(file)
--- 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;
}