Diff between cd959f4cbc103b2f80a0a0733e433ad0dc81753e and d350a5cefe6dda34c082c6a7ba43a35294ac5391

Changed Files

File Additions Deletions Status
profiles/audio/avctp.c +3 -7 modified

Full Patch

diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c
index 8ffbf43..013c587 100644
--- a/profiles/audio/avctp.c
+++ b/profiles/audio/avctp.c
@@ -1132,14 +1132,10 @@ static void avctp_confirm_cb(GIOChannel *chan, gpointer data)
 	if (session == NULL)
 		return;
 
-	dev = manager_get_audio_device(device, FALSE);
+	dev = manager_get_audio_device(device, TRUE);
 	if (!dev) {
-		dev = manager_get_audio_device(device, TRUE);
-		if (!dev) {
-			error("Unable to get audio device object for %s",
-					address);
-			goto drop;
-		}
+		error("Unable to get audio device object for %s", address);
+		goto drop;
 	}
 
 	if (dev->control == NULL) {