diff options
author | Roland Dreier <rdreier@cisco.com> | 2007-10-09 18:46:13 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:55:30 -0400 |
commit | 9153f66a5b8e63c61374df4e6a4cbd0056e45178 (patch) | |
tree | e0a0ae6fbbee67c25a8c414a4e9ae81226e3723a /drivers | |
parent | f2cade13371f3ca80c5479c284e6455c681c8a0c (diff) |
IPoIB: Fix unused variable warning
The conversion to use netdevice internal stats left an unused variable
in ipoib_neigh_free(), since there's no longer any reason to get
netdev_priv() in order to increment dropped packets. Delete the
unused priv variable.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index 6b1b4b2ec5ba..855c9deca8b7 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c | |||
@@ -854,7 +854,6 @@ struct ipoib_neigh *ipoib_neigh_alloc(struct neighbour *neighbour) | |||
854 | 854 | ||
855 | void ipoib_neigh_free(struct net_device *dev, struct ipoib_neigh *neigh) | 855 | void ipoib_neigh_free(struct net_device *dev, struct ipoib_neigh *neigh) |
856 | { | 856 | { |
857 | struct ipoib_dev_priv *priv = netdev_priv(dev); | ||
858 | struct sk_buff *skb; | 857 | struct sk_buff *skb; |
859 | *to_ipoib_neigh(neigh->neighbour) = NULL; | 858 | *to_ipoib_neigh(neigh->neighbour) = NULL; |
860 | while ((skb = __skb_dequeue(&neigh->queue))) { | 859 | while ((skb = __skb_dequeue(&neigh->queue))) { |