From 2cea206bb38dbb573b00b0bf28650b9ccac57578 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 8 Sep 2008 22:56:29 +0300 Subject: Remove incorrect (and premature) optimization --- audio/manager.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/audio/manager.c b/audio/manager.c index 8ad5dd37..3aa1a5dd 100644 --- a/audio/manager.c +++ b/audio/manager.c @@ -992,9 +992,6 @@ struct audio_device *manager_find_device(const bdaddr_t *bda, const char *interf { GSList *l; - if (!bacmp(bda, BDADDR_ANY) && !interface && !connected) - return devices->data; - for (l = devices; l != NULL; l = l->next) { struct audio_device *dev = l->data; -- cgit