]> www.infradead.org Git - nvme.git/commitdiff
l2tp: remove unused list_head member in l2tp_tunnel
authorJames Chapman <jchapman@katalix.com>
Thu, 20 Jun 2024 11:22:37 +0000 (12:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Jun 2024 10:33:33 +0000 (11:33 +0100)
Remove an unused variable in struct l2tp_tunnel which was left behind
by commit c4d48a58f32c5 ("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>
net/l2tp/l2tp_core.c
net/l2tp/l2tp_core.h

index 88a34db265d8677dfaa38a7b9af9c5d25b406381..69f8c9f5cdc731b05e805f2cd29558a4e7e52ae5 100644 (file)
@@ -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)
index 91ebf0a3f49975921b9ac4476a400cb6dc68d53a..54dfba1eb91c0ba3cbd8814cada0fe93cc2aabb4 100644 (file)
@@ -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;