bluetooth: fixes shadow variables

Massaging code to fix shadow variables found by -Wshadow.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2023-08-09 12:55:53 -07:00 committed by Carles Cufí
commit e3ecca5784
47 changed files with 729 additions and 765 deletions

View file

@ -759,9 +759,9 @@ int bt_bap_broadcast_source_create(struct bt_bap_broadcast_source_create_param *
stream_param->data,
stream_param->data_count * sizeof(*stream_param->data));
source->stream_data[stream_count].data_count = stream_param->data_count;
for (uint8_t i = 0U; i < stream_param->data_count; i++) {
source->stream_data[stream_count].data[i].data.data =
source->stream_data[stream_count].data[i].value;
for (uint8_t k = 0U; k < stream_param->data_count; k++) {
source->stream_data[stream_count].data[k].data.data =
source->stream_data[stream_count].data[k].value;
}
sys_slist_append(&subgroup->streams, &stream->_node);