diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-07-04 11:37:18 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-07-04 11:58:08 +0200 |
commit | 66f8455aeac3427110d451534567eb1b9aea6929 (patch) | |
tree | 23116c8f24bcf1ee2488ac71b1d615b13cf3f16f /net/bluetooth/hci_event.c | |
parent | Bluetooth: Convert pend_le_conn list to a generic action list (diff) | |
download | linux-66f8455aeac3427110d451534567eb1b9aea6929.tar.xz linux-66f8455aeac3427110d451534567eb1b9aea6929.zip |
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.c | 2 |
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) |