summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-12-26 15:13:55 -0800
committerDavid S. Miller <davem@davemloft.net>2008-12-26 15:13:55 -0800
commit8d25332081d87491e3b12fa130539fe9e2ba4a94 (patch)
tree77abe8177568209c43b95cb4371564aa5efc0896 /drivers/net
parent2d5451d2614583de0c9aaf61cf5f77faf5694105 (diff)
downloadlinux-3.10-8d25332081d87491e3b12fa130539fe9e2ba4a94.tar.gz
linux-3.10-8d25332081d87491e3b12fa130539fe9e2ba4a94.tar.bz2
linux-3.10-8d25332081d87491e3b12fa130539fe9e2ba4a94.zip
igb: Fix build warning when DCA is disabled.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/igb/igb_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index 9331e521246..022794e579c 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -3379,7 +3379,6 @@ static void igb_write_itr(struct igb_ring *ring)
static irqreturn_t igb_msix_rx(int irq, void *data)
{
struct igb_ring *rx_ring = data;
- struct igb_adapter *adapter = rx_ring->adapter;
/* Write the ITR value calculated at the end of the
* previous interrupt.
@@ -3391,7 +3390,7 @@ static irqreturn_t igb_msix_rx(int irq, void *data)
__netif_rx_schedule(&rx_ring->napi);
#ifdef CONFIG_IGB_DCA
- if (adapter->flags & IGB_FLAG_DCA_ENABLED)
+ if (rx_ring->adapter->flags & IGB_FLAG_DCA_ENABLED)
igb_update_rx_dca(rx_ring);
#endif
return IRQ_HANDLED;