diff --git a/src/modules/convertible/dbus_acceleration.c b/src/modules/convertible/dbus_acceleration.c index badee37a3..c15ba3933 100644 --- a/src/modules/convertible/dbus_acceleration.c +++ b/src/modules/convertible/dbus_acceleration.c @@ -14,7 +14,7 @@ DbusAccelerometer* sensor_proxy_init() { // Initialise DBUS component - if (accelerometer_dbus != NULL) + if (accelerometer_dbus) { INF("We already have a struct filled"); return accelerometer_dbus; @@ -24,7 +24,7 @@ sensor_proxy_init() // The next line is probably redundant accelerometer_dbus->orientation = undefined; - + INF("Getting dbus interfaces"); accelerometer_dbus->sensor_proxy = get_dbus_interface(EFL_DBUS_ACC_IFACE); accelerometer_dbus->sensor_proxy_properties = get_dbus_interface(ELDBUS_FDO_INTERFACE_PROPERTIES); @@ -348,15 +348,14 @@ _is_device_a_touch_pointer(int dev_counter, int num_properties, char **iterator) int is_correct_device = EINA_FALSE; for (int i=0; idir); elm_theme_extension_add(NULL, theme_overlay_path); - econvertible_config_init(NULL); + econvertible_config_init(); // Config DBus DbusAccelerometer *accelerometer = sensor_proxy_init(); @@ -290,7 +290,7 @@ e_modapi_init(E_Module *m) ERR("Error: could not add the signal handler for PropertiesChanged"); // Screen related part - E_Zone *zone = NULL; + E_Zone *zone; // Initialise screen part DBG("Looking for the main screen");