[PATCH 2/3] android/gatt: Remove useless variable cast

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

 



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(-)

diff --git a/android/gatt.c b/android/gatt.c
index e7703c1..e2feb20 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -1722,7 +1722,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) {
-- 
1.9.1

--
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