]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Use hci_pend_le_action_lookup to look up report entries
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 4 Jul 2014 09:37:27 +0000 (12:37 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 4 Jul 2014 09:58:10 +0000 (11:58 +0200)
commit12cc4e546edf7ec27dcecdc93d980783a8a4b806
treec83305abc09993a27f8fd413bf0548aeb8fbc789
parent79b3707f6387997eedb7f6d52ad3b9e4a32125d3
Bluetooth: Use hci_pend_le_action_lookup to look up report entries

Instead of looking through the entire list of entries we can more
efficiently use the new hci_pend_le_action_lookup() function to look up
entries specifically in the pend_le_reports list. Since the search is
now limited to the right list we can also remove an unnecessary check
for list_empty() before the lookup.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_event.c