From: Jean-Philippe Orsini Date: Wed, 17 Sep 2014 20:07:34 +0000 (+0200) Subject: cleanup X-Git-Tag: v1.1.2~68 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=117980feebda75789c20b9fba0efef84f836f365 cleanup --- diff --git a/src/lib/cpu.c b/src/lib/cpu.c index 8f37723..df6b963 100644 --- a/src/lib/cpu.c +++ b/src/lib/cpu.c @@ -88,16 +88,15 @@ void cpu_usage_sensor_update(struct psensor *s) void cpu_psensor_list_update(struct psensor **sensors) { - struct psensor **ss, *s; + struct psensor *s; - ss = sensors; - while (*ss) { - s = *ss; + while (*sensors) { + s = *sensors; if (s->type & SENSOR_TYPE_GTOP && s->type & SENSOR_TYPE_CPU_USAGE) cpu_usage_sensor_update(s); - ss++; + sensors++; } }