diff options
author | Daniel Lezcano <dlezcano@fr.ibm.com> | 2008-10-28 22:08:46 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-28 23:02:33 -0700 |
commit | 3717746ef8b5a9279281b5d318496710984ed739 (patch) | |
tree | e6f4b352ca06f4f917366b85bce9e2b6a82b1da2 | |
parent | bb7bba3d56963be59bc6764c8021290ed55205ad (diff) | |
download | blackbird-op-linux-3717746ef8b5a9279281b5d318496710984ed739.tar.gz blackbird-op-linux-3717746ef8b5a9279281b5d318496710984ed739.zip |
veth: remove unused list
The veth network device is stored in a list in the netdev private.
AFAICS, this list is never used so I removed this list from the code.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/veth.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/net/veth.c b/drivers/net/veth.c index f7ea5bcefc2c..75b40fefc4ee 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c @@ -8,7 +8,6 @@ * */ -#include <linux/list.h> #include <linux/netdevice.h> #include <linux/ethtool.h> #include <linux/etherdevice.h> @@ -30,13 +29,10 @@ struct veth_net_stats { struct veth_priv { struct net_device *peer; - struct list_head list; struct veth_net_stats *stats; unsigned ip_summed; }; -static LIST_HEAD(veth_list); - /* * ethtool interface */ @@ -420,11 +416,9 @@ static int veth_newlink(struct net_device *dev, priv = netdev_priv(dev); priv->peer = peer; - list_add(&priv->list, &veth_list); priv = netdev_priv(peer); priv->peer = dev; - INIT_LIST_HEAD(&priv->list); return 0; err_register_dev: @@ -446,13 +440,6 @@ static void veth_dellink(struct net_device *dev) priv = netdev_priv(dev); peer = priv->peer; - if (!list_empty(&priv->list)) - list_del(&priv->list); - - priv = netdev_priv(peer); - if (!list_empty(&priv->list)) - list_del(&priv->list); - unregister_netdevice(dev); unregister_netdevice(peer); } |