diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-11-01 10:09:13 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-02 07:52:46 +0100 |
commit | a666960d182cfb7074640bdb004633ffb2e58f26 (patch) | |
tree | ca32e3323f662d3d5c3600bb13e14244b48bc41b /drivers/net/ethernet/cavium | |
parent | net: dl2k: remove redundant re-assignment to np (diff) | |
download | linux-a666960d182cfb7074640bdb004633ffb2e58f26.tar.xz linux-a666960d182cfb7074640bdb004633ffb2e58f26.zip |
liquidio: remove redundant setting of inst_processed to zero
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>
Diffstat (limited to 'drivers/net/ethernet/cavium')
-rw-r--r-- | drivers/net/ethernet/cavium/liquidio/request_manager.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/request_manager.c b/drivers/net/ethernet/cavium/liquidio/request_manager.c index a10459742ae4..e07d2093b971 100644 --- a/drivers/net/ethernet/cavium/liquidio/request_manager.c +++ b/drivers/net/ethernet/cavium/liquidio/request_manager.c @@ -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)) |