Commit 675080f2 authored by Guillaume Nault's avatar Guillaume Nault Committed by David S. Miller

l2tp: remove field 'dev' from struct l2tp_eth

This field has never been used.
Signed-off-by: default avatarGuillaume Nault <g.nault@alphalink.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c7fa745d
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
/* via netdev_priv() */ /* via netdev_priv() */
struct l2tp_eth { struct l2tp_eth {
struct net_device *dev;
struct sock *tunnel_sock; struct sock *tunnel_sock;
struct l2tp_session *session; struct l2tp_session *session;
atomic_long_t tx_bytes; atomic_long_t tx_bytes;
...@@ -60,9 +59,6 @@ struct l2tp_eth_sess { ...@@ -60,9 +59,6 @@ struct l2tp_eth_sess {
static int l2tp_eth_dev_init(struct net_device *dev) static int l2tp_eth_dev_init(struct net_device *dev)
{ {
struct l2tp_eth *priv = netdev_priv(dev);
priv->dev = dev;
eth_hw_addr_random(dev); eth_hw_addr_random(dev);
eth_broadcast_addr(dev->broadcast); eth_broadcast_addr(dev->broadcast);
netdev_lockdep_set_classes(dev); netdev_lockdep_set_classes(dev);
...@@ -315,7 +311,6 @@ static int l2tp_eth_create(struct net *net, struct l2tp_tunnel *tunnel, ...@@ -315,7 +311,6 @@ static int l2tp_eth_create(struct net *net, struct l2tp_tunnel *tunnel,
l2tp_eth_adjust_mtu(tunnel, session, dev); l2tp_eth_adjust_mtu(tunnel, session, dev);
priv = netdev_priv(dev); priv = netdev_priv(dev);
priv->dev = dev;
priv->session = session; priv->session = session;
priv->tunnel_sock = tunnel->sock; priv->tunnel_sock = tunnel->sock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment