Skip to contentSkip to conversation

atlx: Fix set-but-unused variable.

PATCH In review David Miller 1 participant 1 message Apr 18, 2011

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 11/42 atlx: Fix set-but-unused variable.

The variable 'tpc' is set but unused in atl1_intr_tx(). Just kill it off.

---
 drivers/net/atlx/atl1.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
drivers/net/atlx/atl1.c +0 -3
index 98334a1..dffa691 100644
@@ -2074,9 +2074,6 @@ static void atl1_intr_tx(struct atl1_adapter *adapter)
 	cmb_tpd_next_to_clean = le16_to_cpu(adapter->cmb.cmb->tpd_cons_idx);
 
 	while (cmb_tpd_next_to_clean != sw_tpd_next_to_clean) {
-		struct tx_packet_desc *tpd;
-
-		tpd = ATL1_TPD_DESC(tpd_ring, sw_tpd_next_to_clean);
 		buffer_info = &tpd_ring->buffer_info[sw_tpd_next_to_clean];
 		if (buffer_info->dma) {
 			pci_unmap_page(adapter->pdev, buffer_info->dma,
Signature · 1 line
1.7.4.3