Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <ali@rudi.ir>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ali Gholami Rudi and committed by
David S. Miller
f9254eda e5c140a3

-2
-2
drivers/net/ixgbe/ixgbe_main.c
··· 1339 1339 if (!q_vector->rxr_count) 1340 1340 return IRQ_HANDLED; 1341 1341 1342 - r_idx = find_first_bit(q_vector->rxr_idx, adapter->num_rx_queues); 1343 - rx_ring = &(adapter->rx_ring[r_idx]); 1344 1342 /* disable interrupts on this vector only */ 1345 1343 ixgbe_irq_disable_queues(adapter, ((u64)1 << q_vector->v_idx)); 1346 1344 napi_schedule(&q_vector->napi);