[PATCH 13/15] android/gatt: Change label name from failed to reply

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 1b48730..58b228d 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -1351,12 +1351,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) {
@@ -1370,14 +1370,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;
@@ -1389,7 +1389,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);
-- 
1.8.4

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux