From bc54a084d10f5a214622600c586e336ce6f7e144 Mon Sep 17 00:00:00 2001 From: Mikel Astiz Date: Tue, 4 Sep 2012 11:55:27 +0200 Subject: [PATCH] audio: Fix gateway probe always failing Commit 813b674bce1aab009e7f2d14d1825f603330563d introduced this trivial bug which causes the failure of the gateway profile probe. --- audio/manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/manager.c b/audio/manager.c index 9ca8593bb..5c819570e 100644 --- a/audio/manager.c +++ b/audio/manager.c @@ -706,7 +706,7 @@ static int ag_probe(struct btd_device *device, GSList *uuids) return -1; } - if (!audio_dev->gateway) + if (audio_dev->gateway) return -EALREADY; audio_dev->gateway = gateway_init(audio_dev); -- 2.47.3