From: David S. Miller Date: Sun, 17 Apr 2011 07:51:40 +0000 (-0700) Subject: atlx: Fix set-but-unused variable. X-Git-Tag: MMI-PSA29.97-13-9~18929^2~531 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f8dfc4528b93ba9c9a191151f8888b4da1d1a45b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git atlx: Fix set-but-unused variable. The variable 'tpc' is set but unused in atl1_intr_tx(). Just kill it off. Signed-off-by: David S. Miller --- diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c index 98334a1f0c5c..dffa6919a419 100644 --- a/drivers/net/atlx/atl1.c +++ b/drivers/net/atlx/atl1.c @@ -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,