lib/coverage: Removed set but not used variables
authorDaniele Di Proietto <ddiproietto@vmware.com>
Tue, 15 Jul 2014 18:32:36 +0000 (11:32 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 15 Jul 2014 19:41:39 +0000 (12:41 -0700)
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>
lib/coverage.c

index 5a20d6e..fe97d69 100644 (file)
@@ -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;
     }