Skip to content

Commit

Permalink
[TIPC]: Withdrawing all names from nameless port now returns success,…
Browse files Browse the repository at this point in the history
… not error

Signed-off-by: Allan Stephens <[email protected]>
Signed-off-by: Per Liden <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ajstephens authored and davem330 committed Jun 26, 2006
1 parent 51f9cc1 commit a751352
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/tipc/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
}
Expand Down

0 comments on commit a751352

Please sign in to comment.