l2tp: remove .tunnel_sock from struct l2tp_eth

This field has never been used.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Guillaume Nault 2017-11-11 06:06:29 +09:00 committed by David S. Miller
parent 93f7ea7437
commit 8fdfd6595b
1 changed files with 0 additions and 2 deletions

View File

@ -41,7 +41,6 @@
/* via netdev_priv() */ /* via netdev_priv() */
struct l2tp_eth { struct l2tp_eth {
struct sock *tunnel_sock;
struct l2tp_session *session; struct l2tp_session *session;
atomic_long_t tx_bytes; atomic_long_t tx_bytes;
atomic_long_t tx_packets; 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 = netdev_priv(dev);
priv->session = session; priv->session = session;
priv->tunnel_sock = tunnel->sock;
session->recv_skb = l2tp_eth_dev_recv; session->recv_skb = l2tp_eth_dev_recv;
session->session_close = l2tp_eth_delete; session->session_close = l2tp_eth_delete;
#if IS_ENABLED(CONFIG_L2TP_DEBUGFS) #if IS_ENABLED(CONFIG_L2TP_DEBUGFS)