diff options
author | Johan Hedberg | 2014-08-15 20:06:57 +0200 |
---|---|---|
committer | Marcel Holtmann | 2014-09-08 19:07:52 +0200 |
commit | 51bb8457ddfa74ede52bf8c02054dea831d59fff (patch) | |
tree | 668dd96aa65093142ca79ce55cdca68067fcc129 /net/bluetooth/hci_core.c | |
parent | Bluetooth: Optimize connection parameter lookup for LE connections (diff) | |
download | kernel-qcow2-linux-51bb8457ddfa74ede52bf8c02054dea831d59fff.tar.gz kernel-qcow2-linux-51bb8457ddfa74ede52bf8c02054dea831d59fff.tar.xz kernel-qcow2-linux-51bb8457ddfa74ede52bf8c02054dea831d59fff.zip |
Bluetooth: Improve *_get() functions to return the object type
It's natural to have *_get() functions that increment the reference
count of an object to return the object type itself. This way it's
simple to make a copy of the object pointer and increase the reference
count in a single step. This patch updates two such get() functions,
namely hci_conn_get() and l2cap_conn_get(), and updates the users to
take advantage of the new API.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_core.c')
0 files changed, 0 insertions, 0 deletions