Bluetooth: Replace bt_addr_le_cmp in bool context with !bt_addr_le_eq

These should be equivalent. The new form is more readable.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
This commit is contained in:
Aleksander Wasaznik 2022-09-20 11:10:15 +02:00 committed by Johan Hedberg
commit ea558187b5
7 changed files with 14 additions and 14 deletions

View file

@ -2983,7 +2983,7 @@ static void auth_pairing_oob_data_request(struct bt_conn *conn,
: NULL;
if (oobd_remote &&
bt_addr_le_cmp(info.le.remote, &oob_remote.addr)) {
!bt_addr_le_eq(info.le.remote, &oob_remote.addr)) {
bt_addr_le_to_str(info.le.remote, addr, sizeof(addr));
shell_print(ctx_shell,
"No OOB data available for remote %s",
@ -2993,7 +2993,7 @@ static void auth_pairing_oob_data_request(struct bt_conn *conn,
}
if (oobd_local &&
bt_addr_le_cmp(info.le.local, &oob_local.addr)) {
!bt_addr_le_eq(info.le.local, &oob_local.addr)) {
bt_addr_le_to_str(info.le.local, addr, sizeof(addr));
shell_print(ctx_shell,
"No OOB data available for local %s",