Skip to content

Commit

Permalink
tipc: remove dead code in struct tipc_topsrv
Browse files Browse the repository at this point in the history
max_rcvbuf_size is no longer used since commit "414574a0af36".

Signed-off-by: Zhaolong Zhang <zhangzl2013@126.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Zhaolong Zhang authored and David S. Miller committed Jan 25, 2019
1 parent 58e0b4a commit 8eab6da
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/tipc/topsrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
* @awork: accept work item
* @rcv_wq: receive workqueue
* @send_wq: send workqueue
* @max_rcvbuf_size: maximum permitted receive message length
* @listener: topsrv listener socket
* @name: server name
*/
Expand All @@ -72,7 +71,6 @@ struct tipc_topsrv {
struct work_struct awork;
struct workqueue_struct *rcv_wq;
struct workqueue_struct *send_wq;
int max_rcvbuf_size;
struct socket *listener;
char name[TIPC_SERVER_NAME_LEN];
};
Expand Down Expand Up @@ -648,7 +646,6 @@ int tipc_topsrv_start(struct net *net)
return -ENOMEM;

srv->net = net;
srv->max_rcvbuf_size = sizeof(struct tipc_subscr);
INIT_WORK(&srv->awork, tipc_topsrv_accept);

strscpy(srv->name, name, sizeof(srv->name));
Expand Down

0 comments on commit 8eab6da

Please sign in to comment.