tipc: remove redundant code in topology server
authorJon Maloy <jon.maloy@ericsson.com>
Thu, 15 Feb 2018 09:40:42 +0000 (10:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Feb 2018 20:26:33 +0000 (15:26 -0500)
commit27469b7352b5197cffa0e3dadb5f1127f055da27
tree3d69eb67760f1e213820be002e634990be8edf35
parent35ed663f5f4f70dd750ea3e0166c5b90db9feea3
tipc: remove redundant code in topology server

The socket handling in the topology server is unnecessarily generic.
It is prepared to handle both SOCK_RDM, SOCK_DGRAM and SOCK_STREAM
type sockets, as well as the only socket type which is really used,
SOCK_SEQPACKET.

We now remove this redundant code to make the code more readable.

Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/server.c
net/tipc/server.h
net/tipc/subscr.c