aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@sw.ru>2007-07-06 11:05:25 -0400
committerJeff Garzik <jeff@garzik.org>2007-07-10 12:41:19 -0400
commit89c0d26be7037cd5bbce3bbf12580ba70ed8f382 (patch)
tree0c63eafb5fb0841f6f2f8351f771bfe255ffe0b7 /drivers
parent099575b6cb7eaf18211ba72de56264f67651b90b (diff)
atl1: remove write-only var in tx handler
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/atl1/atl1_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/atl1/atl1_main.c b/drivers/net/atl1/atl1_main.c
index 6862c11ff864..3bb40dd4a410 100644
--- a/drivers/net/atl1/atl1_main.c
+++ b/drivers/net/atl1/atl1_main.c
@@ -634,14 +634,13 @@ static void atl1_intr_tx(struct atl1_adapter *adapter)
634 struct atl1_buffer *buffer_info; 634 struct atl1_buffer *buffer_info;
635 u16 sw_tpd_next_to_clean; 635 u16 sw_tpd_next_to_clean;
636 u16 cmb_tpd_next_to_clean; 636 u16 cmb_tpd_next_to_clean;
637 u8 update = 0;
638 637
639 sw_tpd_next_to_clean = atomic_read(&tpd_ring->next_to_clean); 638 sw_tpd_next_to_clean = atomic_read(&tpd_ring->next_to_clean);
640 cmb_tpd_next_to_clean = le16_to_cpu(adapter->cmb.cmb->tpd_cons_idx); 639 cmb_tpd_next_to_clean = le16_to_cpu(adapter->cmb.cmb->tpd_cons_idx);
641 640
642 while (cmb_tpd_next_to_clean != sw_tpd_next_to_clean) { 641 while (cmb_tpd_next_to_clean != sw_tpd_next_to_clean) {
643 struct tx_packet_desc *tpd; 642 struct tx_packet_desc *tpd;
644 update = 1; 643
645 tpd = ATL1_TPD_DESC(tpd_ring, sw_tpd_next_to_clean); 644 tpd = ATL1_TPD_DESC(tpd_ring, sw_tpd_next_to_clean);
646 buffer_info = &tpd_ring->buffer_info[sw_tpd_next_to_clean]; 645 buffer_info = &tpd_ring->buffer_info[sw_tpd_next_to_clean];
647 if (buffer_info->dma) { 646 if (buffer_info->dma) {