raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=48fb969e2062a0b76feb5a6b3465e18b462431c3

commit 48fb969e2062a0b76feb5a6b3465e18b462431c3
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sat Oct 10 10:50:44 2015 +0900

    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();
---
 src/modules/eeze/sensor/udev/udev.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/modules/eeze/sensor/udev/udev.c 
b/src/modules/eeze/sensor/udev/udev.c
index 8025dfe..5697f29 100644
--- a/src/modules/eeze/sensor/udev/udev.c
+++ b/src/modules/eeze/sensor/udev/udev.c
@@ -88,8 +88,7 @@ _udev_read(void)
                   else y++;
                }
            }
-   if (sensors)
-     temp /= (double)sensors;
+        if (sensors) temp /= (double)sensors;
    }
 
    return temp;
@@ -119,8 +118,7 @@ udev_read(Eeze_Sensor_Obj *obj)
 static Eina_Bool
 udev_async_read(Eeze_Sensor_Obj *obj, void *user_data)
 {
-   if (user_data)
-     obj->user_data = user_data;
+   if (user_data) obj->user_data = user_data;
 
    switch (obj->type)
      {
@@ -187,8 +185,7 @@ sensor_udev_shutdown(void)
    Eeze_Sensor_Obj *sens;
 
    eeze_sensor_module_unregister("udev");
-   EINA_LIST_FREE(esensor_module->sensor_list, sens)
-      free(sens);
+   EINA_LIST_FREE(esensor_module->sensor_list, sens) free(sens);
 
    eina_log_domain_unregister(_eeze_sensor_udev_log_dom);
 

-- 


Reply via email to