Fix the warning errors 10/199010/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 1 Feb 2019 00:26:01 +0000 (09:26 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 1 Feb 2019 00:26:01 +0000 (09:26 +0900)
Change-Id: Ib1bb16613a744e730a724de0556fbe69e3a72468
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-oal/bluez_hal/src/bt-hal-dbus-common-utils.c
bt-oal/bluez_hal/src/bt-hal-gatt-client.c

index 6ab321b..8528369 100644 (file)
@@ -521,7 +521,7 @@ GDBusProxy *_bt_hal_get_avrcp_ctrl_proxy(bt_bdaddr_t *bd_addr)
        for (i = 0; i < BT_AUDIO_SOURCE_MAX; i++) {
                if (proxy_array[i].avrcp_ctrl_proxy
                     && (!memcmp(proxy_array[i].bd_addr.address, bd_addr->address, 6))) {
-                       char *path = g_dbus_proxy_get_object_path(proxy_array[i].avrcp_ctrl_proxy);
+                       const gchar *path = g_dbus_proxy_get_object_path(proxy_array[i].avrcp_ctrl_proxy);
 
                        if (!path) {
                                proxy_array[i].avrcp_ctrl_proxy = NULL;
index 6f3daca..6895eb0 100644 (file)
@@ -480,13 +480,6 @@ bt_status_t _hal_gattc_disconnect(int client_if, const bt_bdaddr_t *bd_addr,
                        NULL,
                        (GAsyncReadyCallback)__le_disconnection_req_cb, gattc_data);
        return ret;
-fail:
-       if (device_proxy)
-               g_object_unref(device_proxy);
-
-       g_free(gattc_data);
-
-       return ret;
 }
 
 /** Disconnect a remote device or cancel a pending connection */
@@ -2992,14 +2985,6 @@ static bt_status_t __bt_connect_le_device_internal(int client_if, const bt_bdadd
                        (GAsyncReadyCallback)__le_connection_req_cb, gattc_data);
 
        return ret;
-
-fail:
-       if (device_proxy)
-               g_object_unref(device_proxy);
-
-       g_free(gattc_data);
-
-       return ret;
 }
 
 static bt_status_t _bt_hold_current_advertising()