Commit 8d253320 authored by David S. Miller's avatar David S. Miller

igb: Fix build warning when DCA is disabled.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2d5451d2
...@@ -3379,7 +3379,6 @@ static void igb_write_itr(struct igb_ring *ring) ...@@ -3379,7 +3379,6 @@ static void igb_write_itr(struct igb_ring *ring)
static irqreturn_t igb_msix_rx(int irq, void *data) static irqreturn_t igb_msix_rx(int irq, void *data)
{ {
struct igb_ring *rx_ring = data; struct igb_ring *rx_ring = data;
struct igb_adapter *adapter = rx_ring->adapter;
/* Write the ITR value calculated at the end of the /* Write the ITR value calculated at the end of the
* previous interrupt. * previous interrupt.
...@@ -3391,7 +3390,7 @@ static irqreturn_t igb_msix_rx(int irq, void *data) ...@@ -3391,7 +3390,7 @@ static irqreturn_t igb_msix_rx(int irq, void *data)
__netif_rx_schedule(&rx_ring->napi); __netif_rx_schedule(&rx_ring->napi);
#ifdef CONFIG_IGB_DCA #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); igb_update_rx_dca(rx_ring);
#endif #endif
return IRQ_HANDLED; return IRQ_HANDLED;
......
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