Fix the prevent issue
authorSung-jae Park <nicesj.park@samsung.com>
Wed, 3 Sep 2014 10:38:24 +0000 (19:38 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Wed, 3 Sep 2014 10:38:24 +0000 (19:38 +0900)
[model] Redwood,Kiran,B3(Wearable)
[binary_type] AP
[customer] Docomo/Orange/ATT/Open
[issue#] N/A
[problem]
[cause]
[solution]
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: I1292fe299825a2056a04da67275b028f75b6747b

src/connection.c

index ae116d4..51a1ead 100644 (file)
@@ -105,13 +105,8 @@ int connection_init(void)
 
 int connection_fini(void)
 {
-       if (com_core_del_event_callback(CONNECTOR_DISCONNECTED, disconnected_cb, NULL) < 0) {
-               ErrPrint("Unable to de-register the disconnected callback\n");
-       }
-
-       if (com_core_del_event_callback(CONNECTOR_CONNECTED, connected_cb, NULL) < 0) {
-               ErrPrint("Unable to de-register the disconnected callback\n");
-       }
+       (void)com_core_del_event_callback(CONNECTOR_DISCONNECTED, disconnected_cb, NULL);
+       (void)com_core_del_event_callback(CONNECTOR_CONNECTED, connected_cb, NULL);
 
        return LB_STATUS_SUCCESS;
 }