zephyr/subsys/bluetooth/audio
Tom Hughes 8218bf6b0a Bluetooth: TBS: Fix -Wsometimes-uninitialized warning
Building bluetooth.shell.audio.only_gtbs with clang warns:

subsys/bluetooth/audio/tbs.c:1646:6: error: variable 'ret' is used
uninitialized whenever 'if' condition is false
[-Werror,-Wsometimes-uninitialized]
        if (param->gtbs) {
            ^~~~~~~~~~~
subsys/bluetooth/audio/tbs.c:1667:9: note: uninitialized use occurs here
        return ret;
               ^~~
subsys/bluetooth/audio/tbs.c:1646:2: note: remove the 'if' if its
condition is always true
        if (param->gtbs) {
        ^~~~~~~~~~~~~~~~~
subsys/bluetooth/audio/tbs.c:1626:9: note: initialize the variable 'ret'
to silence this warning
        int ret;
               ^
                = 0

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-02-11 03:07:39 +01:00
..
shell Bluetooth: Audio: Shell: Fix ad data returning -1 2025-02-05 21:02:14 +01:00
aics_client.c
aics_internal.h
aics.c
ascs_internal.h Bluetooth: Audio: Spring cleanup for audio source files 2025-02-04 12:03:04 +01:00
ascs.c Bluetooth: Audio: Spring cleanup for audio source files 2025-02-04 12:03:04 +01:00
audio_internal.h
audio.c Bluetooth: Audio: Spring cleanup for audio source files 2025-02-04 12:03:04 +01:00
bap_base.c Bluetooth: BAP: Remove ISO limitation on BASE parsing 2025-01-17 09:08:16 +01:00
bap_broadcast_assistant.c Bluetooth: BAP: BA: Add validation of add/mod src 2024-12-27 14:08:57 +01:00
bap_broadcast_sink.c Bluetooth: BAP: Fix issue with sink recv state notifications 2025-02-06 21:13:15 +01:00
bap_broadcast_source.c Bluetooth: BAP: Add broadcast source callback structs 2024-12-06 15:17:06 +01:00
bap_endpoint.h Bluetooth: BAP: Fix issue with sink recv state notifications 2025-02-06 21:13:15 +01:00
bap_internal.h
bap_iso.c
bap_iso.h
bap_scan_delegator.c Bluetooth: LE: BAP: Check buf len before using it 2025-01-10 14:47:54 +01:00
bap_stream.c tests: Bluetooth: Audio: Use same recv_cb for all tests 2024-11-21 14:47:49 +01:00
bap_stream.h
bap_unicast_client_internal.h Bluetooth: Audio: Spring cleanup for audio source files 2025-02-04 12:03:04 +01:00
bap_unicast_client.c
bap_unicast_server.c
bap_unicast_server.h
cap_acceptor.c
cap_commander.c Bluetooth: Audio: Spring cleanup for audio source files 2025-02-04 12:03:04 +01:00
cap_common.c Bluetooth: Audio: implement the distribute broadcast code procedure 2024-11-25 21:52:53 +01:00
cap_initiator.c Bluetooth: CAP: Fix log warning for meta pointer 2024-12-09 09:50:12 +01:00
cap_internal.h Bluetooth: Audio: Spring cleanup for audio source files 2025-02-04 12:03:04 +01:00
cap_stream.c
ccid.c
ccp_call_control_client.c Bluetooth: CCP: Initial CCP Client implemenation 2025-01-28 09:46:39 +01:00
ccp_call_control_server.c Bluetooth: CCP: Introduce new CCP API 2025-01-08 07:50:32 +01:00
CMakeLists.txt Bluetooth: CCP: Initial CCP Client implemenation 2025-01-28 09:46:39 +01:00
codec.c
csip_crypto.c Bluetooth: audio: Fix byteorder in csip sef crypto function 2025-01-20 16:28:35 +01:00
csip_crypto.h Bluetooth: CSIP: Update documentation for CSIP crypto functions 2025-02-08 08:13:17 +01:00
csip_internal.h Bluetooth: CSIP: Update documentation for CSIP crypto functions 2025-02-08 08:13:17 +01:00
csip_set_coordinator.c Bluetooth: audio: Fix byteorder in csip sef crypto function 2025-01-20 16:28:35 +01:00
csip_set_member.c Bluetooth: audio: Fix byteorder in csip sef crypto function 2025-01-20 16:28:35 +01:00
gmap_client.c
gmap_server.c
has_client.c
has_internal.h
has.c
Kconfig Bluetooth: CCP: Introduce new CCP API 2025-01-08 07:50:32 +01:00
Kconfig.aics Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
Kconfig.ascs Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
Kconfig.bap Bluetooth: BAP: Modify range of BT_BAP_BROADCAST_SNK_SUBGROUP_COUNT 2024-12-27 12:36:40 +01:00
Kconfig.cap
Kconfig.ccp Bluetooth: CCP: Initial CCP Client implemenation 2025-01-28 09:46:39 +01:00
Kconfig.csip Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
Kconfig.gmap
Kconfig.has Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
Kconfig.mcs Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
Kconfig.mctl
Kconfig.micp Bluetooth: Audio: depends on GATT instead of select 2024-11-21 09:19:47 +01:00
Kconfig.mpl
Kconfig.pacs Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
Kconfig.pbp
Kconfig.tbs Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
Kconfig.tmap Bluetooth: TMAP: Add role validation for bt_tmap_register 2024-12-27 14:09:13 +01:00
Kconfig.vcp Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
Kconfig.vocs Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
mcc_internal.h
mcc.c
mcs_internal.h
mcs.c
media_proxy_internal.h
media_proxy.c Bluetooth: Audio: add bt_ prefix when registering logging module 2024-12-09 15:10:57 +01:00
micp_internal.h
micp_mic_ctlr.c
micp_mic_dev.c
mpl_internal.h
mpl.c Bluetooth: MPL: Fix build issues with the MPL shell 2025-01-07 00:27:17 +01:00
pacs_internal.h Bluetooth: BAP: Add common capability check 2025-01-15 19:04:31 +01:00
pacs.c Bluetooth: PACS: Test and fix PACS Kconfig combinations 2025-02-10 22:25:47 +01:00
pbp.c
tbs_client.c Bluetooth: TBS: Fix return value of handle_string_long_read 2025-02-08 08:13:28 +01:00
tbs_internal.h
tbs.c Bluetooth: TBS: Fix -Wsometimes-uninitialized warning 2025-02-11 03:07:39 +01:00
tmap.c Bluetooth: TMAP: Add role validation for bt_tmap_register 2024-12-27 14:09:13 +01:00
vcp_internal.h
vcp_vol_ctlr.c
vcp_vol_rend.c
vocs_client.c
vocs_internal.h
vocs.c