]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
atlx: Fix set-but-unused variable.
authorDavid S. Miller <davem@davemloft.net>
Sun, 17 Apr 2011 07:51:40 +0000 (00:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Apr 2011 07:51:40 +0000 (00:51 -0700)
The variable 'tpc' is set but unused in atl1_intr_tx().
Just kill it off.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/atlx/atl1.c

index 98334a1f0c5cb8366a474ab6549e036b5cf238ab..dffa6919a4198a93520901d07938832eaadafd97 100644 (file)
@@ -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,