Skip to content

Commit a744e2d

Browse files
j-c-hdavem330
authored andcommitted
l2tp: remove unused list_head member in l2tp_tunnel
Remove an unused variable in struct l2tp_tunnel which was left behind by commit c4d48a5 ("l2tp: convert l2tp_tunnel_list to idr"). Signed-off-by: James Chapman <jchapman@katalix.com> Reviewed-by: Tom Parkin <tparkin@katalix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 39c4691 commit a744e2d

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

net/l2tp/l2tp_core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,8 +1462,6 @@ int l2tp_tunnel_create(int fd, int version, u32 tunnel_id, u32 peer_tunnel_id,
14621462
/* Init delete workqueue struct */
14631463
INIT_WORK(&tunnel->del_work, l2tp_tunnel_del_work);
14641464

1465-
INIT_LIST_HEAD(&tunnel->list);
1466-
14671465
err = 0;
14681466
err:
14691467
if (tunnelp)

net/l2tp/l2tp_core.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ struct l2tp_tunnel {
174174
enum l2tp_encap_type encap;
175175
struct l2tp_stats stats;
176176

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

180179
refcount_t ref_count;

0 commit comments

Comments
 (0)