summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-10-24 21:22:40 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-10-24 21:22:40 +0000
commitac568573b26dc0d7f1a92457296606205dc144b1 (patch)
treeee15975e3fa77dae51212a2674d7188b19e9b04b
parentd05be53901f38d2e64c63283e4837b20f8e916b6 (diff)
Fix hci_devba check.
-rw-r--r--audio/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/manager.c b/audio/manager.c
index 2ed9f39e..6c23923f 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -1100,7 +1100,7 @@ static void register_devices_stored(const char *adapter)
bacpy(&default_src, BDADDR_ANY);
dev_id = hci_get_route(&default_src);
- if (dev_id < 0 || hci_devba(dev_id, &default_src))
+ if (dev_id < 0 || hci_devba(dev_id, &default_src) < 0)
return;
if (bacmp(&default_src, &src) != 0)