l2tp: remove .tunnel_sock from struct l2tp_eth
authorGuillaume Nault <g.nault@alphalink.fr>
Fri, 10 Nov 2017 21:06:29 +0000 (06:06 +0900)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 13:08:23 +0000 (22:08 +0900)
This field has never been used.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_eth.c

index 3e2dec1fb0f5eb4ee13ac075b06de049efb64e47..5c366ecfa1cb0e2918c54f30d80ab30780f4cfdb 100644 (file)
@@ -41,7 +41,6 @@
 
 /* via netdev_priv() */
 struct l2tp_eth {
-       struct sock             *tunnel_sock;
        struct l2tp_session     *session;
        atomic_long_t           tx_bytes;
        atomic_long_t           tx_packets;
@@ -313,7 +312,6 @@ static int l2tp_eth_create(struct net *net, struct l2tp_tunnel *tunnel,
        priv = netdev_priv(dev);
        priv->session = session;
 
-       priv->tunnel_sock = tunnel->sock;
        session->recv_skb = l2tp_eth_dev_recv;
        session->session_close = l2tp_eth_delete;
 #if IS_ENABLED(CONFIG_L2TP_DEBUGFS)