From 5019ae9a70eb6b1d84e46124a641f4bca2669790 Mon Sep 17 00:00:00 2001 From: Abhishek Chandra Date: Mon, 10 Sep 2018 11:39:55 +0530 Subject: [PATCH] Removed duplicate g_variant_get call 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 --- bt-oal/bluez_hal/src/bt-hal-gatt-server.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/bt-oal/bluez_hal/src/bt-hal-gatt-server.c b/bt-oal/bluez_hal/src/bt-hal-gatt-server.c index e802ef3..0aaa3b9 100644 --- a/bt-oal/bluez_hal/src/bt-hal-gatt-server.c +++ b/bt-oal/bluez_hal/src/bt-hal-gatt-server.c @@ -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); -- 2.7.4