Skip to content

Commit 8f611fb

Browse files
Colin Ian KingJeff Kirsher
authored andcommitted
ixgbe: remove redundant initialization of 'pool'
Variable pool is being assigned zero and then in the following for-loop is it being set to zero again. Remove the redundant first assignment. Cleans up clang warning: drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c:61:2: warning: Value stored to 'pool' is never read Signed-off-by: Colin Ian King <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent f74290f commit 8f611fb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ static bool ixgbe_cache_ring_dcb_sriov(struct ixgbe_adapter *adapter)
5858
return false;
5959

6060
/* start at VMDq register offset for SR-IOV enabled setups */
61-
pool = 0;
6261
reg_idx = vmdq->offset * __ALIGN_MASK(1, ~vmdq->mask);
6362
for (i = 0, pool = 0; i < adapter->num_rx_queues; i++, reg_idx++) {
6463
/* If we are greater than indices move to next pool */

0 commit comments

Comments
 (0)