Diff between cd88946db6c6db9a8f88b005690965a08cf0d026 and 6fc3f7d00d3ada5c72aa7c64c6b0a41d974e5f72

Changed Files

File Additions Deletions Status
android/handsfree.c +1 -8 modified

Full Patch

diff --git a/android/handsfree.c b/android/handsfree.c
index aa8765e..7475744 100644
--- a/android/handsfree.c
+++ b/android/handsfree.c
@@ -275,13 +275,6 @@ static void device_destroy(struct hf_device *dev)
 	free(dev);
 }
 
-static struct hf_device *find_default_device(void)
-{
-	/* TODO should be replaced by find_device() eventually */
-
-	return queue_peek_head(devices);
-}
-
 static bool match_by_bdaddr(const void *data, const void *match_data)
 {
 	const struct hf_device *dev = data;
@@ -293,7 +286,7 @@ static bool match_by_bdaddr(const void *data, const void *match_data)
 static struct hf_device *find_device(const bdaddr_t *bdaddr)
 {
 	if (!bacmp(bdaddr, BDADDR_ANY))
-		return find_default_device();
+		return queue_peek_head(devices);
 
 	return queue_find(devices, match_by_bdaddr, bdaddr);
 }