Skip to content

Commit

Permalink
l2tp: remove .tunnel_sock from struct l2tp_eth
Browse files Browse the repository at this point in the history
This field has never been used.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Guillaume Nault authored and David S. Miller committed Nov 11, 2017
1 parent 93f7ea7 commit 8fdfd65
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/l2tp/l2tp_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8fdfd65

Please sign in to comment.