bluetooth: shell: Add missing return
Avoid invalid bit shift by adding return. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
381d5285ea
commit
2c0fcdf22b
1 changed files with 2 additions and 0 deletions
|
@ -836,6 +836,8 @@ static int cmd_bap_broadcast_assistant_add_pa_sync(const struct shell *sh,
|
|||
if (index < BT_ISO_BIS_INDEX_MIN ||
|
||||
index > BT_ISO_BIS_INDEX_MAX) {
|
||||
shell_error(sh, "Invalid index: %ld", index);
|
||||
|
||||
return -ENOEXEC;
|
||||
}
|
||||
|
||||
bis_bitfield_req |= BIT(index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue