aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {
30 30
31struct veth_priv { 31struct veth_priv {
32 struct net_device *peer; 32 struct net_device *peer;
33 struct net_device *dev;
34 struct list_head list; 33 struct list_head list;
35 struct veth_net_stats *stats; 34 struct veth_net_stats *stats;
36 unsigned ip_summed; 35 unsigned ip_summed;
@@ -420,12 +419,10 @@ static int veth_newlink(struct net_device *dev,
420 */ 419 */
421 420
422 priv = netdev_priv(dev); 421 priv = netdev_priv(dev);
423 priv->dev = dev;
424 priv->peer = peer; 422 priv->peer = peer;
425 list_add(&priv->list, &veth_list); 423 list_add(&priv->list, &veth_list);
426 424
427 priv = netdev_priv(peer); 425 priv = netdev_priv(peer);
428 priv->dev = peer;
429 priv->peer = dev; 426 priv->peer = dev;
430 INIT_LIST_HEAD(&priv->list); 427 INIT_LIST_HEAD(&priv->list);
431 return 0; 428 return 0;