From: Colin Ian King <colin.king@canonical.com>
Date: Wed, 1 Nov 2017 09:09:13 +0000
Subject: liquidio: remove redundant setting of inst_processed to zero
Patch-mainline: v4.15-rc1
Git-commit: a666960d182cfb7074640bdb004633ffb2e58f26
References: bsc#1119406 FATE#326562
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>
Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
---
drivers/net/ethernet/cavium/liquidio/request_manager.c | 2 --
1 file changed, 2 deletions(-)
--- 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 *oc
}
tot_inst_processed += inst_processed;
- inst_processed = 0;
-
} while (tot_inst_processed < napi_budget);
if (napi_budget && (tot_inst_processed >= napi_budget))