Bluetooth: BAP: Shell: Fixed some bap shell cmds
Added missing initialization for cmd_stream_qos and cmd_sync_broadcast. Signed-off-by: Benjamin Lucke <git@lucke.tech>
This commit is contained in:
parent
9fd0185c3b
commit
9c323d685b
1 changed files with 2 additions and 2 deletions
|
@ -1163,7 +1163,7 @@ static int cmd_stream_qos(const struct shell *sh, size_t argc, char *argv[])
|
|||
{
|
||||
struct bt_audio_codec_qos *qos;
|
||||
unsigned long interval;
|
||||
int err;
|
||||
int err = 0;
|
||||
|
||||
if (default_stream == NULL) {
|
||||
shell_print(sh, "No stream selected");
|
||||
|
@ -2282,7 +2282,7 @@ static int cmd_sync_broadcast(const struct shell *sh, size_t argc, char *argv[])
|
|||
struct bt_bap_stream *streams[ARRAY_SIZE(broadcast_sink_streams)];
|
||||
uint32_t bis_bitfield;
|
||||
size_t stream_cnt;
|
||||
int err;
|
||||
int err = 0;
|
||||
|
||||
bis_bitfield = 0;
|
||||
stream_cnt = 0U;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue