bluetooth: audio: Fix logical check
I imagine that expression (req != 0 || req != 1) is always true. Fix it changing '||' to '&&'. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
f519b4d6f2
commit
a4341bbc2c
1 changed files with 1 additions and 1 deletions
|
@ -801,7 +801,7 @@ static int cmd_bap_broadcast_assistant_add_pa_sync(const struct shell *sh,
|
|||
shell_error(sh, "failed to parse pa_sync: %d", err);
|
||||
|
||||
return -ENOEXEC;
|
||||
} else if (pa_sync_req != 0U || pa_sync_req != 1U) {
|
||||
} else if (pa_sync_req != 0U && pa_sync_req != 1U) {
|
||||
shell_error(sh, "pa_sync_req shall be boolean: %lu", pa_sync_req);
|
||||
|
||||
return -ENOEXEC;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue