summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Di Proietto <ddiproietto@vmware.com>2014-07-15 11:32:36 -0700
committerBen Pfaff <blp@nicira.com>2014-07-15 12:41:39 -0700
commitf4b3f6a61e641387819ec6ceb9a2dfacde0d4e88 (patch)
treeda24cf75fb2129cba7a4ea1d5395b1ec985d0b9d
parentc78c16a11ac4161fc5867272accf52c4abf8c193 (diff)
downloadopenvswitch-f4b3f6a61e641387819ec6ceb9a2dfacde0d4e88.tar.gz
lib/coverage: Removed set but not used variables
This removes a GCC 4.9 warning (unused-but-set-variable) Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
-rw-r--r--lib/coverage.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/coverage.c b/lib/coverage.c
index 5a20d6ec3..fe97d69af 100644
--- a/lib/coverage.c
+++ b/lib/coverage.c
@@ -279,8 +279,6 @@ coverage_clear(void)
void
coverage_run(void)
{
- /* Defines the moving average array index variables. */
- static unsigned int min_idx, hr_idx;
struct coverage_counter **c = coverage_counters;
long long int now;
@@ -330,8 +328,6 @@ coverage_run(void)
/* Updates the global index variables. */
idx_count = (idx_count + slots) % (MIN_AVG_LEN * HR_AVG_LEN);
- min_idx = idx_count % MIN_AVG_LEN;
- hr_idx = idx_count / MIN_AVG_LEN;
/* Updates the run time. */
coverage_run_time = now + COVERAGE_RUN_INTERVAL;
}