From 9ef0b9a31c831a4c5f7a2919e7a7540b642bdf86 Mon Sep 17 00:00:00 2001 From: Sebastien Date: Sat, 30 Jun 2012 21:38:04 +0200 Subject: [PATCH] mpstat code cleaned. A variable (scp) was set but unused in one of mpstat's function. So remove it. --- mpstat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mpstat.c b/mpstat.c index a8669dc..e54cbe5 100644 --- 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. -- 2.50.1