From: Ali Gholami Rudi Date: Tue, 10 Nov 2009 06:40:06 +0000 (+0000) Subject: ixgbe: r_idx not used in ixgbe_msix_clean_rx() X-Git-Tag: firefly_0821_release~9833^2~3968^2~399 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f9254edaabfc48f5a28bb5a88c6db48704cc058d;p=firefly-linux-kernel-4.4.55.git ixgbe: r_idx not used in ixgbe_msix_clean_rx() The values of r_idx and rx_ring are not used after the last time they are set in ixgbe_msix_clean_rx(), so they can be removed. Signed-off-by: Ali Gholami Rudi Acked-by: Peter P Waskiewicz Jr Signed-off-by: David S. Miller --- diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 448e84d56601..afd49e04a56a 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c @@ -1339,8 +1339,6 @@ static irqreturn_t ixgbe_msix_clean_rx(int irq, void *data) if (!q_vector->rxr_count) return IRQ_HANDLED; - r_idx = find_first_bit(q_vector->rxr_idx, adapter->num_rx_queues); - rx_ring = &(adapter->rx_ring[r_idx]); /* disable interrupts on this vector only */ ixgbe_irq_disable_queues(adapter, ((u64)1 << q_vector->v_idx)); napi_schedule(&q_vector->napi);