Code bugs're fixed 72/15272/1
authorsh.pi <sh.pi@samsung.com>
Wed, 26 Jun 2013 13:27:27 +0000 (22:27 +0900)
committerKrzysztof Sasiak <k.sasiak@samsung.com>
Fri, 17 Jan 2014 13:10:49 +0000 (14:10 +0100)
 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>
src/core/edbus-handler.c
src/display/lsensor.c

index 7bdb088..8a937a3 100644 (file)
@@ -346,9 +346,11 @@ int register_edbus_watch(DBusMessage *msg)
        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;
index 8efdaa7..fa097e0 100644 (file)
@@ -149,7 +149,7 @@ static int connect_sfsvc(void)
        if (sf_state < 0) {
                _E("accelerometer sensor attach fail");
                sf_disconnect(accel_handle);
-               light_handle = -1;
+               accel_handle = -1;
                goto error;
        }