Driver currently utilizes the same loop variable in two
nested loops.
Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
        struct qede_rx_queue *rxq = NULL;
        struct sw_rx_data *sw_rx_data;
        union eth_rx_cqe *cqe;
-       int i, rc = 0;
+       int i, iter, rc = 0;
        u8 *data_ptr;
 
        for_each_queue(i) {
         * enabled. This is because the queue 0 is configured as the default
         * queue and that the loopback traffic is not IP.
         */
-       for (i = 0; i < QEDE_SELFTEST_POLL_COUNT; i++) {
+       for (iter = 0; iter < QEDE_SELFTEST_POLL_COUNT; iter++) {
                if (!qede_has_rx_work(rxq)) {
                        usleep_range(100, 200);
                        continue;
                qed_chain_recycle_consumed(&rxq->rx_comp_ring);
        }
 
-       if (i == QEDE_SELFTEST_POLL_COUNT) {
+       if (iter == QEDE_SELFTEST_POLL_COUNT) {
                DP_NOTICE(edev, "Failed to receive the traffic\n");
                return -1;
        }