Skip to content

Commit

Permalink
liquidio: remove redundant setting of inst_processed to zero
Browse files Browse the repository at this point in the history
The zero value assigned to inst_processed at the end of each
iteration of the do-while loop is overwritten on the next iteration
and hence it is a redundant assignment and can be removed. Cleans
up clang warning:

drivers/net/ethernet/cavium/liquidio/request_manager.c:480:3:
warning: Value stored to 'inst_processed' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Colin Ian King authored and David S. Miller committed Nov 2, 2017
1 parent 5618c8e commit a666960
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/cavium/liquidio/request_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,6 @@ octeon_flush_iq(struct octeon_device *oct, struct octeon_instr_queue *iq,
}

tot_inst_processed += inst_processed;
inst_processed = 0;

} while (tot_inst_processed < napi_budget);

if (napi_budget && (tot_inst_processed >= napi_budget))
Expand Down

0 comments on commit a666960

Please sign in to comment.