From 1a954c0116d36967e6be23b226373d44407ed5cd Mon Sep 17 00:00:00 2001 From: Lukasz Rymanowski Date: Tue, 8 Apr 2014 11:22:30 +0200 Subject: [PATCH] android/gatt: Change label name from failed to reply Next patch will use this label in success case therefore let's change this label --- android/gatt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/android/gatt.c b/android/gatt.c index da9d892b0..eebeebee8 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -1342,12 +1342,12 @@ static void handle_client_get_included_service(const void *buf, uint16_t len) device = find_device_by_conn_id(cmd->conn_id); if (!device) { status = HAL_STATUS_FAILED; - goto failed; + goto reply; } if (queue_isempty(device->services)) { status = HAL_STATUS_FAILED; - goto failed; + goto reply; } if (!cmd->number) { @@ -1361,14 +1361,14 @@ static void handle_client_get_included_service(const void *buf, uint16_t len) if (!service) { status = HAL_STATUS_FAILED; - goto failed; + goto reply; } data = new0(struct get_included_data, 1); if (!data) { error("gatt: failed to allocate memory for included_data"); status = HAL_STATUS_FAILED; - goto failed; + goto reply; } data->prim = service; @@ -1380,7 +1380,7 @@ static void handle_client_get_included_service(const void *buf, uint16_t len) status = HAL_STATUS_SUCCESS; -failed: +reply: ipc_send_rsp(hal_ipc, HAL_SERVICE_ID_GATT, HAL_OP_GATT_CLIENT_GET_INCLUDED_SERVICE, status); -- 2.47.3