]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Use hci_conn_num() instead of direct connection hash access
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 10 Oct 2013 16:47:55 +0000 (09:47 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 10 Oct 2013 20:08:02 +0000 (22:08 +0200)
commit8118314bf59da597c2edb2acefcb5f4a84257db2
tree0c3bcadafe9d9579f6ef875dda976ffedc0be1de
parent8a0417af4763ab2ea8e33b736d121f708371d349
Bluetooth: Use hci_conn_num() instead of direct connection hash access

When changing the alternate setting for the ISOC endpoints, use the
hci_conn_num() helper function to count currently established SCO
and eSCO connections and store the the value. This avoids direct
access to the connection hash.

In addition use the stored value instead accessing the connection
hash over and over again.

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