summaryrefslogtreecommitdiff
path: root/android/hal-gatt.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-07-04 16:43:55 +0300
committerSzymon Janc <szymon.janc@tieto.com>2014-07-04 16:46:51 +0200
commitda16db5af6f5f07ae48d128eace9f528586f965a (patch)
tree667731e0a300ba6acd72024e19d08efdea6ce65e /android/hal-gatt.c
parent81aaa6f88020f23293dec3991ae1cf9e680ab218 (diff)
downloadbluez-da16db5af6f5f07ae48d128eace9f528586f965a.tar.gz
android/hal-gatt: Remove unneeded never read initialization
Fixes clang warning: ... android/hal-gatt.c:1021:3: warning: Value stored to 'data' is never read data += service_uuid_len; ^ ~~~~~~~~~~~~~~~~ 1 warning generated. ...
Diffstat (limited to 'android/hal-gatt.c')
-rw-r--r--android/hal-gatt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/android/hal-gatt.c b/android/hal-gatt.c
index 1cc48974f..c563fe9e6 100644
--- a/android/hal-gatt.c
+++ b/android/hal-gatt.c
@@ -1016,10 +1016,8 @@ static bt_status_t set_adv_data_real(int server_if, bool set_scan_rsp,
data += service_data_len;
}
- if (service_uuid && service_uuid_len) {
+ if (service_uuid && service_uuid_len)
memcpy(data, service_uuid, service_uuid_len);
- data += service_uuid_len;
- }
return hal_ipc_cmd(HAL_SERVICE_ID_GATT, HAL_OP_GATT_CLIENT_SET_ADV_DATA,
cmd_len, cmd, NULL, NULL, NULL);