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:
parent
6e38356b3c
commit
e3ecca5784
47 changed files with 729 additions and 765 deletions
|
@ -2032,8 +2032,8 @@ static void le_set_cig_parameters(struct net_buf *buf, struct net_buf **evt)
|
|||
status = ll_cig_parameters_commit(cig_id, handles);
|
||||
|
||||
if (status == BT_HCI_ERR_SUCCESS) {
|
||||
for (uint8_t i = 0; i < cis_count; i++) {
|
||||
rp->handle[i] = sys_cpu_to_le16(handles[i]);
|
||||
for (uint8_t j = 0; j < cis_count; j++) {
|
||||
rp->handle[j] = sys_cpu_to_le16(handles[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2104,8 +2104,8 @@ static void le_set_cig_params_test(struct net_buf *buf, struct net_buf **evt)
|
|||
status = ll_cig_parameters_commit(cig_id, handles);
|
||||
|
||||
if (status == BT_HCI_ERR_SUCCESS) {
|
||||
for (uint8_t i = 0; i < cis_count; i++) {
|
||||
rp->handle[i] = sys_cpu_to_le16(handles[i]);
|
||||
for (uint8_t j = 0; j < cis_count; j++) {
|
||||
rp->handle[j] = sys_cpu_to_le16(handles[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue