diff options
Diffstat (limited to 'drivers/net/wireless/b43/dma.c')
-rw-r--r-- | drivers/net/wireless/b43/dma.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/b43/dma.c b/drivers/net/wireless/b43/dma.c index 6dcbb3c87e72..f50e2014ffbe 100644 --- a/drivers/net/wireless/b43/dma.c +++ b/drivers/net/wireless/b43/dma.c | |||
@@ -1427,18 +1427,16 @@ void b43_dma_get_tx_stats(struct b43_wldev *dev, | |||
1427 | { | 1427 | { |
1428 | const int nr_queues = dev->wl->hw->queues; | 1428 | const int nr_queues = dev->wl->hw->queues; |
1429 | struct b43_dmaring *ring; | 1429 | struct b43_dmaring *ring; |
1430 | struct ieee80211_tx_queue_stats_data *data; | ||
1431 | unsigned long flags; | 1430 | unsigned long flags; |
1432 | int i; | 1431 | int i; |
1433 | 1432 | ||
1434 | for (i = 0; i < nr_queues; i++) { | 1433 | for (i = 0; i < nr_queues; i++) { |
1435 | data = &(stats->data[i]); | ||
1436 | ring = select_ring_by_priority(dev, i); | 1434 | ring = select_ring_by_priority(dev, i); |
1437 | 1435 | ||
1438 | spin_lock_irqsave(&ring->lock, flags); | 1436 | spin_lock_irqsave(&ring->lock, flags); |
1439 | data->len = ring->used_slots / SLOTS_PER_PACKET; | 1437 | stats[i].len = ring->used_slots / SLOTS_PER_PACKET; |
1440 | data->limit = ring->nr_slots / SLOTS_PER_PACKET; | 1438 | stats[i].limit = ring->nr_slots / SLOTS_PER_PACKET; |
1441 | data->count = ring->nr_tx_packets; | 1439 | stats[i].count = ring->nr_tx_packets; |
1442 | spin_unlock_irqrestore(&ring->lock, flags); | 1440 | spin_unlock_irqrestore(&ring->lock, flags); |
1443 | } | 1441 | } |
1444 | } | 1442 | } |