summaryrefslogtreecommitdiffstats
path: root/drivers/net/igb
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2009-02-06 23:20:49 +0000
committerDavid S. Miller <davem@davemloft.net>2009-02-07 02:43:13 -0800
commit4a3c6433e48592f260278966742a99e0d77de3cc (patch)
tree351ea20c007219590823a6b27e1fbc93f10fe26a /drivers/net/igb
parent28b0759c224cad4ae8f5ed47f5af862dd2d1e1ed (diff)
downloadblackbird-op-linux-4a3c6433e48592f260278966742a99e0d77de3cc.tar.gz
blackbird-op-linux-4a3c6433e48592f260278966742a99e0d77de3cc.zip
igb: don't read eicr when responding to legacy interrupts
The interrupt handler was reading eicr and then doing nothing with the result. I have removed the variable and the register read since they provide no value to the legacy interrupt handler. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb')
-rw-r--r--drivers/net/igb/igb_main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index e3f521ccf9d5..56c14557cea3 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -3519,7 +3519,7 @@ static irqreturn_t igb_intr_msi(int irq, void *data)
}
/**
- * igb_intr - Interrupt Handler
+ * igb_intr - Legacy Interrupt Handler
* @irq: interrupt number
* @data: pointer to a network interface device structure
**/
@@ -3531,7 +3531,6 @@ static irqreturn_t igb_intr(int irq, void *data)
/* Interrupt Auto-Mask...upon reading ICR, interrupts are masked. No
* need for the IMC write */
u32 icr = rd32(E1000_ICR);
- u32 eicr = 0;
if (!icr)
return IRQ_NONE; /* Not our interrupt */
@@ -3547,8 +3546,6 @@ static irqreturn_t igb_intr(int irq, void *data)
adapter->stats.doosync++;
}
- eicr = rd32(E1000_EICR);
-
if (icr & (E1000_ICR_RXSEQ | E1000_ICR_LSC)) {
hw->mac.get_link_status = 1;
/* guard against interrupt when we're going down */
OpenPOWER on IntegriCloud