tipc: remove redundant call to tipc_node_remove_conn
authorErik Hugne <erik.hugne@ericsson.com>
Thu, 19 Mar 2015 08:02:17 +0000 (09:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Mar 2015 16:25:54 +0000 (12:25 -0400)
commit18d6c58415fa9f5ec98767a2434acc8197c7f288
tree03651d0ea3ef90b8c6fa7f36c98c7d478103f54e
parentde1cf8a7d7a369bc7d63f7be27e3d84ad6a69bb2
tipc: remove redundant call to tipc_node_remove_conn

tipc_node_remove_conn may be called twice if shutdown() is
called on a socket that have messages in the receive queue.
Calling this function twice does no harm, but is unnecessary
and we remove the redundant call.

Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c