Skip to contentSkip to conversation

avctp: Fix typo in comment which contradicts the conditional below

BlueZ Applied Bastien Nocera 3 participants 3 messages Aug 18 – Aug 19 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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(-)
profiles/audio/avctp.c +1 -1
index f20e08c00ac8..336511bf9612 100644
@@ -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);
Signature · 1 line
2.55.0
#1 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1147758

---Test result---

Test Summary:

CheckPatch                    PASS      0.30 seconds
GitLint                       PASS      0.20 seconds
BuildEll                      PASS      20.88 seconds
BluezMake                     PASS      628.01 seconds
MakeCheck                     PASS      3.27 seconds
MakeDistcheck                 PASS      165.31 seconds
CheckValgrind                 PASS      168.89 seconds
CheckSmatch                   PASS      333.63 seconds
bluezmakeextell               PASS      105.42 seconds
IncrementalBuild              PASS      629.40 seconds
ScanBuild                     PASS      1011.35 seconds

https://github.com/bluez/bluez/pull/2411

---
Regards,
Linux Bluetooth

#2 lore raw
In reply to Bastien Nocera
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Hello:

This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Quoted 6 lines · On Tue, 18 Aug 2026 12:58:21 +0200 you wrote:

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(-)

Here is the summary with links:
- [BlueZ] avctp: Fix typo in comment which contradicts the conditional below

    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=44f6fbc4e3b1

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html