* [BlueZ] avctp: Fix typo in comment which contradicts the conditional below
@ 2026-08-18 10:58 Bastien Nocera
2026-08-18 12:21 ` bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: Bastien Nocera @ 2026-08-18 10:58 UTC (permalink / raw)
To: linux-bluetooth
The comment says "If the request set a callback send it directly" but
checks for whether "the request did not set a callback" using
if (!func)
---
profiles/audio/avctp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c
index f20e08c00ac8..336511bf9612 100644
--- a/profiles/audio/avctp.c
+++ b/profiles/audio/avctp.c
@@ -1632,7 +1632,7 @@ static int avctp_send_req(struct avctp *session, uint8_t code,
if (control == NULL)
return -ENOTCONN;
- /* If the request set a callback send it directly */
+ /* If the request did not set a callback send it directly */
if (!func)
return avctp_send(session->control, -1, AVCTP_COMMAND,
code, subunit, opcode, operands, operand_count);
--
2.55.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-18 12:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-18 10:58 [BlueZ] avctp: Fix typo in comment which contradicts the conditional below Bastien Nocera
2026-08-18 12:21 ` bluez.test.bot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.