From: Daniel Lezcano Date: Wed, 29 Oct 2008 05:08:19 +0000 (-0700) Subject: veth: Remove useless veth field X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bb7bba3d56963be59bc6764c8021290ed55205ad;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/veth.c b/drivers/net/veth.c index 31cd817f33f9..f7ea5bcefc2c 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;