summaryrefslogtreecommitdiff
path: root/net/bluetooth/hci_event.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-07-04 12:37:18 +0300
committerMarcel Holtmann <marcel@holtmann.org>2014-07-04 11:58:08 +0200
commit66f8455aeac3427110d451534567eb1b9aea6929 (patch)
tree23116c8f24bcf1ee2488ac71b1d615b13cf3f16f /net/bluetooth/hci_event.c
parent93450c75448e370659ce7ca9c192298596fb055e (diff)
Bluetooth: Convert pend_le_reports into a list
To simplify manipulation and lookup of hci_conn_params entries of the type HCI_AUTO_CONN_REPORT it makes sense to store them in their own list. The new action list_head in hci_conn_params is used for this purpose. Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r--net/bluetooth/hci_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index e0407e674061..2a2ef698e851 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -4240,7 +4240,7 @@ static void process_adv_report(struct hci_dev *hdev, u8 type, bdaddr_t *bdaddr,
return;
}
- if (!hdev->pend_le_reports)
+ if (list_empty(&hdev->pend_le_reports))
return;
if (type == LE_ADV_DIRECT_IND)