Skip to content

Commit

Permalink
igb: Fix build warning when DCA is disabled.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
davem330 committed Dec 26, 2008
1 parent 2d5451d commit 8d25332
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
Expand Down

0 comments on commit 8d25332

Please sign in to comment.