]> git.baikalelectronics.ru Git - kernel.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)
commit6b9c933841b92692bb35141a508b38ff8b5e5d3f
tree2988f82253c797035756266c44c06104fdf312a9
parent83903da9408961691259d8fb78af688dc36ecc37
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