Removed duplicate g_variant_get call 60/188760/1 accepted/tizen/unified/20180911.055340 submit/tizen/20180910.080716
authorAbhishek Chandra <abhishek.ch@samsung.com>
Mon, 10 Sep 2018 06:09:55 +0000 (11:39 +0530)
committerAbhishek Chandra <abhishek.ch@samsung.com>
Mon, 10 Sep 2018 06:09:55 +0000 (11:39 +0530)
g_variant_get is called to extract
address , offset for read value request
in __bt_gatt_char_method_call twice .
Removed the redundant call.

Change-Id: Id5694e6437cef8ac016e701964b9c2a288161db6
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
bt-oal/bluez_hal/src/bt-hal-gatt-server.c

index e802ef3..0aaa3b9 100644 (file)
@@ -1093,9 +1093,6 @@ static void __bt_gatt_char_method_call(GDBusConnection *connection,
                        return;
                }
 
-               g_variant_get(parameters, "(&suq)", &addr, &req_id, &offset);
-               DBG("Request id = %u, Offset = %u", req_id, offset);
-
                /* Store requets information */
                req_info = g_new0(struct gatt_req_info, 1);
                req_info->attr_path = g_strdup(object_path);