diff options
author | Jon Maloy <jon.maloy@ericsson.com> | 2018-02-15 12:40:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-16 23:26:33 +0300 |
commit | c901d26d4a8137f3ad0e5865d331f7c63c42d9f9 (patch) | |
tree | 89ff5b5f5fd1cb4f4c5c002cd2ada9353154d70d /net/tipc/server.h | |
parent | 27469b7352b5197cffa0e3dadb5f1127f055da27 (diff) | |
download | linux-c901d26d4a8137f3ad0e5865d331f7c63c42d9f9.tar.xz |
tipc: remove unnecessary function pointers
Interaction between the functionality in server.c and subscr.c is
done via function pointers installed in struct server. This makes
the code harder to follow, and doesn't serve any obvious purpose.
Here, we replace the function pointers with direct function calls.
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 | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/net/tipc/server.h b/net/tipc/server.h index 434736d545c2..b4b83bdc8b20 100644 --- a/net/tipc/server.h +++ b/net/tipc/server.h @@ -72,11 +72,6 @@ struct tipc_server { struct workqueue_struct *rcv_wq; struct workqueue_struct *send_wq; int max_rcvbuf_size; - void *(*tipc_conn_new)(int conid); - void (*tipc_conn_release)(int conid, void *usr_data); - int (*tipc_conn_recvmsg)(struct net *net, int conid, - struct sockaddr_tipc *addr, void *usr_data, - void *buf, size_t len); struct sockaddr_tipc *saddr; char name[TIPC_SERVER_NAME_LEN]; }; |