Commit a744e2d0 authored by James Chapman's avatar James Chapman Committed by David S. Miller
Browse files

l2tp: remove unused list_head member in l2tp_tunnel



Remove an unused variable in struct l2tp_tunnel which was left behind
by commit c4d48a58 ("l2tp: convert l2tp_tunnel_list to idr").

Signed-off-by: default avatarJames Chapman <jchapman@katalix.com>
Reviewed-by: default avatarTom Parkin <tparkin@katalix.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 39c46918
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1462,8 +1462,6 @@ int l2tp_tunnel_create(int fd, int version, u32 tunnel_id, u32 peer_tunnel_id,
	/* Init delete workqueue struct */
	INIT_WORK(&tunnel->del_work, l2tp_tunnel_del_work);

	INIT_LIST_HEAD(&tunnel->list);

	err = 0;
err:
	if (tunnelp)
+0 −1
Original line number Diff line number Diff line
@@ -174,7 +174,6 @@ struct l2tp_tunnel {
	enum l2tp_encap_type	encap;
	struct l2tp_stats	stats;

	struct list_head	list;		/* list node on per-namespace list of tunnels */
	struct net		*l2tp_net;	/* the net we belong to */

	refcount_t		ref_count;