summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2008-10-28 22:08:19 -0700
committerDavid S. Miller <davem@davemloft.net>2008-10-28 23:02:33 -0700
commitbb7bba3d56963be59bc6764c8021290ed55205ad (patch)
treee9fc1c38e37f203d193d0636963ee7fc5d4ce3f8
parentfdb46ee752ed05c94bac71fe3decdb5175ec6e1f (diff)
veth: Remove useless veth field
The veth private structure contains a netdev pointer refering to its peer. This field is never used and it is pointless because if we can access, the veth_priv, that means we already have the netdev which is stored in veth_priv->dev. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/veth.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/veth.c b/drivers/net/veth.c
index 31cd817f33f..f7ea5bcefc2 100644
--- a/drivers/net/veth.c
+++ b/drivers/net/veth.c
@@ -30,7 +30,6 @@ struct veth_net_stats {
struct veth_priv {
struct net_device *peer;
- struct net_device *dev;
struct list_head list;
struct veth_net_stats *stats;
unsigned ip_summed;
@@ -420,12 +419,10 @@ static int veth_newlink(struct net_device *dev,
*/
priv = netdev_priv(dev);
- priv->dev = dev;
priv->peer = peer;
list_add(&priv->list, &veth_list);
priv = netdev_priv(peer);
- priv->dev = peer;
priv->peer = dev;
INIT_LIST_HEAD(&priv->list);
return 0;