diff options
author | Jon Maloy <jon.maloy@ericsson.com> | 2018-02-15 12:40:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-16 23:26:33 +0300 |
commit | 27469b7352b5197cffa0e3dadb5f1127f055da27 (patch) | |
tree | 3d69eb67760f1e213820be002e634990be8edf35 /net/tipc/server.h | |
parent | 35ed663f5f4f70dd750ea3e0166c5b90db9feea3 (diff) | |
download | linux-27469b7352b5197cffa0e3dadb5f1127f055da27.tar.xz |
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>
Diffstat (limited to 'net/tipc/server.h')
-rw-r--r-- | net/tipc/server.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/tipc/server.h b/net/tipc/server.h index 64df7513cd70..434736d545c2 100644 --- a/net/tipc/server.h +++ b/net/tipc/server.h @@ -79,12 +79,10 @@ struct tipc_server { void *buf, size_t len); struct sockaddr_tipc *saddr; char name[TIPC_SERVER_NAME_LEN]; - int imp; - int type; }; int tipc_conn_sendmsg(struct tipc_server *s, int conid, - struct sockaddr_tipc *addr, void *data, size_t len); + void *data, size_t len); bool tipc_topsrv_kern_subscr(struct net *net, u32 port, u32 type, u32 lower, u32 upper, u32 filter, int *conid); |