summaryrefslogtreecommitdiff
path: root/src/modules/eeze
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-10-10 10:50:44 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-10-10 10:50:44 +0900
commit48fb969e2062a0b76feb5a6b3465e18b462431c3 (patch)
tree21b9d7a63b6e976c09b9857a4af7cdce51fb2a77 /src/modules/eeze
parent55e49f12bf6af2e608d0e34f4452fac0ffe31f4c (diff)
eeze - fix if formatting to be consistent within file
some if's were single line: if (x) blah(); others were if (x) blah(); make formatting consistent at any rate. same for EINA_LIST_FREE() blah();
Diffstat (limited to 'src/modules/eeze')
-rw-r--r--src/modules/eeze/sensor/udev/udev.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/eeze/sensor/udev/udev.c b/src/modules/eeze/sensor/udev/udev.c
index 8025dfe3fd..5697f291a7 100644
--- a/src/modules/eeze/sensor/udev/udev.c
+++ b/src/modules/eeze/sensor/udev/udev.c
@@ -88,8 +88,7 @@ _udev_read(void)
88 else y++; 88 else y++;
89 } 89 }
90 } 90 }
91 if (sensors) 91 if (sensors) temp /= (double)sensors;
92 temp /= (double)sensors;
93 } 92 }
94 93
95 return temp; 94 return temp;
@@ -119,8 +118,7 @@ udev_read(Eeze_Sensor_Obj *obj)
119static Eina_Bool 118static Eina_Bool
120udev_async_read(Eeze_Sensor_Obj *obj, void *user_data) 119udev_async_read(Eeze_Sensor_Obj *obj, void *user_data)
121{ 120{
122 if (user_data) 121 if (user_data) obj->user_data = user_data;
123 obj->user_data = user_data;
124 122
125 switch (obj->type) 123 switch (obj->type)
126 { 124 {
@@ -187,8 +185,7 @@ sensor_udev_shutdown(void)
187 Eeze_Sensor_Obj *sens; 185 Eeze_Sensor_Obj *sens;
188 186
189 eeze_sensor_module_unregister("udev"); 187 eeze_sensor_module_unregister("udev");
190 EINA_LIST_FREE(esensor_module->sensor_list, sens) 188 EINA_LIST_FREE(esensor_module->sensor_list, sens) free(sens);
191 free(sens);
192 189
193 eina_log_domain_unregister(_eeze_sensor_udev_log_dom); 190 eina_log_domain_unregister(_eeze_sensor_udev_log_dom);
194 191