]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Remove unnecessary hci_dev_lock/unlock in smp.c
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 12 Nov 2014 07:17:08 +0000 (09:17 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 12 Nov 2014 09:05:25 +0000 (10:05 +0100)
commitc52d967bc8c692ba6e11a30c5bc449898ea543e0
treef34b024966a7c54c7b9f9f49c86b0d2ba6c9d9f0
parent3e9e694f2ff0ae429f85ac54fb20405c9bc91f78
Bluetooth: Remove unnecessary hci_dev_lock/unlock in smp.c

The mgmt_user_passkey_request and related functions do not do anything
else except read access to hdev->id. This member never changes after the
hdev creation so there is no need to acquire a lock to read it.

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