Message ID | b0eeb28d794adca98f4a246cb368e68022e06e0e.1729937570.git.pav@iki.fi |
---|---|
State | New |
Headers | show |
Series | [BlueZ] shared/bap: ucast streams can only have one link | expand |
diff --git a/src/shared/bap.c b/src/shared/bap.c index dad510aec..658ee1370 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 ||