]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: Set addr_type only when it's needed
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 15 Aug 2014 18:06:55 +0000 (21:06 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 8 Sep 2014 17:07:52 +0000 (19:07 +0200)
commit08853f18eafe65aa97deb464c28505a67c898b0e
tree2988f82253c797035756266c44c06104fdf312a9
parentc16900cf285ca240f0f84117bf8b88a03c55469b
Bluetooth: Set addr_type only when it's needed

In the hci_le_conn_complete_evt() function there's no need to set the
addr_type value until it's actually needed, i.e. for the black list
lookup. This patch moves the code a bit further down in the function.

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