missing_return: Arriving at the end of a function without returning a value.
copy_paste_error: "light_handle" in "light_handle = -1" looks like a copy-paste error.
Change-Id: Ie4e5b597b06d36e33d21a9e486f73e124747983c
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
dbus_bus_add_match(conn, match, NULL);
_I("%s is watched by dbus!", watch);
+
+ return 0;
}
-static unregister_edbus_watch_all(void)
+static void unregister_edbus_watch_all(void)
{
char match[256];
Eina_List *n, *next;
if (sf_state < 0) {
_E("accelerometer sensor attach fail");
sf_disconnect(accel_handle);
- light_handle = -1;
+ accel_handle = -1;
goto error;
}