From 463796f7c8322dfcb4c1bc55aceb9977d7bb776f Mon Sep 17 00:00:00 2001 From: Marcin Kraglak Date: Thu, 10 Apr 2014 20:40:35 +0200 Subject: [PATCH] android/gatt: Remove unneeded label from unregister_client --- android/gatt.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/android/gatt.c b/android/gatt.c index a05b764d3..3b1d38e0c 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); } -- 2.47.3