From 67defd334424afc5b6eeb9a4b342ddec6e92d6d8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Tue, 2 Apr 2013 07:10:25 +0000 Subject: [PATCH] style --- src/ui_sensorpref.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ui_sensorpref.c b/src/ui_sensorpref.c index c9f31b3..8fa4400 100644 --- a/src/ui_sensorpref.c +++ b/src/ui_sensorpref.c @@ -111,14 +111,11 @@ static struct sensor_pref **sensor_pref_list_new(struct psensor **sensors, static void sensor_pref_list_free(struct sensor_pref **list) { - struct sensor_pref **cur = list; + struct sensor_pref **cur; - while (*cur) { + for (cur = list; *cur; cur++) sensor_pref_free(*cur); - cur++; - } - free(list); } -- 2.7.4