]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Simplify hci_conn_params->action list usage
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 4 Jul 2014 09:37:21 +0000 (12:37 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 4 Jul 2014 09:58:09 +0000 (11:58 +0200)
commit9482b39205d266b807dc9782eee9b4460ce2b67a
treeb9ce90eb4ed888ee95f88a234c6f4432994f16cb
parent7fc09c228bf2d3509d4c5044d9408fc85414fc38
Bluetooth: Simplify hci_conn_params->action list usage

Since params->action is used for both the pend_le_conns and
pend_le_reports lists we can simplify the adding and deleting of the
lists considerably. For example, when deleting entries in most
situations we no-longer need to check the auto_connect value but can
directly proceed with calling list_del_init on param->action (which is
safe even if the entry is not part of any list).

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