Diff between 1782bfd791f76317a3f3ded2884606c1b5b164eb and c009be5c5973eeef7783903ec02e359d5b035654

Changed Files

File Additions Deletions Status
src/shared/bap.c +1 -2 modified

Full Patch

diff --git a/src/shared/bap.c b/src/shared/bap.c
index dad510a..658ee13 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -2422,8 +2422,7 @@ static int bap_ucast_io_link(struct bt_bap_stream *stream,
 
 	bap = stream->bap;
 
-	if (queue_find(stream->links, NULL, link) ||
-		queue_find(link->links, NULL, stream))
+	if (!queue_isempty(stream->links) || !queue_isempty(link->links))
 		return -EALREADY;
 
 	if (stream->client != link->client ||