]> 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)
commit93afe0edc3fa8976da107eeac36c5a834e0e16d3
tree2988f82253c797035756266c44c06104fdf312a9
parent38efcb6cf609e4a303d19cc5e27fc3e2521c6221
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