Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/4] android/gatt: Remove unneeded label from unregister_client
@ 2014-04-10 18:40 Marcin Kraglak
  2014-04-10 18:40 ` [PATCH 2/4] android/gatt: Simplify removing device from list Marcin Kraglak
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Marcin Kraglak @ 2014-04-10 18:40 UTC (permalink / raw)
  To: linux-bluetooth

---
 android/gatt.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/android/gatt.c b/android/gatt.c
index a7a7204..4a720cc 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);
 }
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-04-11 13:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-10 18:40 [PATCH 1/4] android/gatt: Remove unneeded label from unregister_client Marcin Kraglak
2014-04-10 18:40 ` [PATCH 2/4] android/gatt: Simplify removing device from list Marcin Kraglak
2014-04-10 18:40 ` [PATCH 3/4] android/gatt: Format string with address properly Marcin Kraglak
2014-04-11 13:56   ` Szymon Janc
2014-04-10 18:40 ` [PATCH 4/4] android/gatt: Remove double variable check Marcin Kraglak
2014-04-11 13:54 ` [PATCH 1/4] android/gatt: Remove unneeded label from unregister_client Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox