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)
commitbb5ce4d018f896403d7a394ec56a550e7890b563
treee2cd7514700e77928dceddd2536cc45cef44c38a
parent912b42ef05a1e9f72a82c21d678a29c5055045d5
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