]> granicus.if.org Git - sysstat/commitdiff
mpstat code cleaned.
authorSebastien <seb@kluane.home>
Sat, 30 Jun 2012 19:38:04 +0000 (21:38 +0200)
committerSebastien <seb@kluane.home>
Sat, 30 Jun 2012 19:38:04 +0000 (21:38 +0200)
A variable (scp) was set but unused in one of mpstat's function.
So remove it.

mpstat.c

index a8669dcca3c5a94e4e4c21e93fbb6c7a1bcfe4cb..e54cbe5c9c07d8612a0d5be01a527f7dadcad35b 100644 (file)
--- a/mpstat.c
+++ b/mpstat.c
@@ -212,7 +212,7 @@ void write_irqcpu_stats(struct stats_irqcpu *st_ic[], int ic_nr, int dis,
                        unsigned long long itv, int prev, int curr,
                        char *prev_string, char *curr_string)
 {
-       struct stats_cpu *scc, *scp;
+       struct stats_cpu *scc;
        int j = 0, offset, cpu;
        struct stats_irqcpu *p, *q, *p0, *q0;
 
@@ -251,7 +251,6 @@ void write_irqcpu_stats(struct stats_irqcpu *st_ic[], int ic_nr, int dis,
        for (cpu = 1; cpu <= cpu_nr; cpu++) {
 
                scc = st_cpu[curr] + cpu;
-               scp = st_cpu[prev] + cpu;
 
                /*
                 * Check if we want stats about this CPU.