Commit ceef1a5e authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman

Staging: et131x: tx ring mac error is only used as a local

So make it a local
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1458d82b
...@@ -143,9 +143,7 @@ struct tx_ring { ...@@ -143,9 +143,7 @@ struct tx_ring {
u32 *tx_status; u32 *tx_status;
dma_addr_t tx_status_pa; dma_addr_t tx_status_pa;
TXMAC_ERR_t TxMacErr; /* Packets since the last IRQ: used for interrupt coalescing */
/* Variables to track the Tx interrupt coalescing features */
int since_irq; int since_irq;
}; };
......
...@@ -397,8 +397,7 @@ void et131x_isr_handler(struct work_struct *work) ...@@ -397,8 +397,7 @@ void et131x_isr_handler(struct work_struct *work)
/* Let's move on to the TxMac */ /* Let's move on to the TxMac */
if (status & ET_INTR_TXMAC) { if (status & ET_INTR_TXMAC) {
etdev->tx_ring.TxMacErr.value = u32 err = readl(&iomem->txmac.err.value);
readl(&iomem->txmac.err.value);
/* /*
* When any of the errors occur and TXMAC generates * When any of the errors occur and TXMAC generates
...@@ -412,7 +411,7 @@ void et131x_isr_handler(struct work_struct *work) ...@@ -412,7 +411,7 @@ void et131x_isr_handler(struct work_struct *work)
*/ */
dev_warn(&etdev->pdev->dev, dev_warn(&etdev->pdev->dev,
"TXMAC interrupt, error 0x%08x\n", "TXMAC interrupt, error 0x%08x\n",
etdev->tx_ring.TxMacErr.value); err);
/* If we are debugging, we want to see this error, /* If we are debugging, we want to see this error,
* otherwise we just want the device to be reset and * otherwise we just want the device to be reset and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment