]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Remove unnecessary checks for auto-connected devices
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 3 Jul 2014 16:33:50 +0000 (19:33 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 16:45:08 +0000 (18:45 +0200)
commitf84366a398d3bf09f3cf711e656c5c811dd575c6
treee2cd7514700e77928dceddd2536cc45cef44c38a
parent1d732507b97f3212ab89945c879284c96af461ad
Bluetooth: Remove unnecessary checks for auto-connected devices

If a device is in the pend_le_conns list it cannot at the same time also
have the need to be notified through mgmt_device_found. By making
check_pending_le_conn return whether it found an entry or not we can
avoid unnecessary checks in process_adv_report().

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