Bluetooth: hci_core: Remove check of BDADDR_ANY in hci_conn_hash_lookup_big_state
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 30 Jun 2025 19:37:46 +0000 (15:37 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 3 Jul 2025 15:36:54 +0000 (11:36 -0400)
The check for destination to be BDADDR_ANY is no longer necessary with
the introduction of BIS_LINK.

Fixes: 23205562ffc8 ("Bluetooth: separate CIS_LINK and BIS_LINK link types")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci_core.h

index 9fc8f544e20e6a8d59c8c309e4c7f483b12b10b1..0da011fc8146a3f482c9f392c070232dabae2a4f 100644 (file)
@@ -1350,8 +1350,7 @@ hci_conn_hash_lookup_big_state(struct hci_dev *hdev, __u8 handle,  __u16 state)
        rcu_read_lock();
 
        list_for_each_entry_rcu(c, &h->list, list) {
-               if (c->type != BIS_LINK || bacmp(&c->dst, BDADDR_ANY) ||
-                   c->state != state)
+               if (c->type != BIS_LINK || c->state != state)
                        continue;
 
                if (handle == c->iso_qos.bcast.big) {