From 01a54fffdb3349ab66f7e78b8fbc84d7ea166e08 Mon Sep 17 00:00:00 2001 From: Grzegorz Kolodziejczyk Date: Fri, 4 Apr 2014 09:31:59 +0200 Subject: android/gatt: Remove useless variable cast This patch removes useless uint8_t array to bdaddr_t cast. android2bdaddr function expects const void *buf as first parametr. --- android/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'android') diff --git a/android/gatt.c b/android/gatt.c index 68e211265..473929d47 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -2233,7 +2233,7 @@ static void handle_client_register_for_notification(const void *buf, goto failed; } - android2bdaddr((bdaddr_t *)&cmd->bdaddr, &addr); + android2bdaddr(&cmd->bdaddr, &addr); dev = queue_find(conn_list, match_dev_by_bdaddr, &addr); if (!dev) { -- cgit v1.2.1