Diff between 00fc421057e0e3a56c236677a12d885bf344974f and 463796f7c8322dfcb4c1bc55aceb9977d7bb776f
Changed Files
| File | Additions | Deletions | Status |
| android/gatt.c | +3 | -5 | modified |
Full Patch
diff --git a/android/gatt.c b/android/gatt.c
index a05b764..3b1d38e 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -506,13 +506,11 @@ static void handle_client_unregister(const void *buf, uint16_t len)
if (!cl) {
error("gatt: client_if=%d not found", cmd->client_if);
status = HAL_STATUS_FAILED;
- goto failed;
+ } else {
+ destroy_gatt_client(cl);
+ status = HAL_STATUS_SUCCESS;
}
- destroy_gatt_client(cl);
- status = HAL_STATUS_SUCCESS;
-
-failed:
ipc_send_rsp(hal_ipc, HAL_SERVICE_ID_GATT,
HAL_OP_GATT_CLIENT_UNREGISTER, status);
}