diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2012-07-23 17:19:04 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-08-06 14:02:58 -0400 |
commit | ee72d150ada90d33cc6e222fbdd7f980c16d974d (patch) | |
tree | af8fcbec4089b0edd723010d4de1e6e5827a642d /net/bluetooth | |
parent | 9e66463127ff7238020c3c4e7f84dfbc23e5c2b5 (diff) |
Bluetooth: Remove locking in hci_user_passkey_request_evt
This patch removes hdev locking in hci_user_passkey_request_evt
since it is not needed. mgmt_user_passkey_request simply calls
mgmt_event which does not require hdev locking at all.
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/hci_event.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 2d8761b8b19c..0386e1e72275 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -3252,12 +3252,8 @@ static void hci_user_passkey_request_evt(struct hci_dev *hdev, | |||
3252 | 3252 | ||
3253 | BT_DBG("%s", hdev->name); | 3253 | BT_DBG("%s", hdev->name); |
3254 | 3254 | ||
3255 | hci_dev_lock(hdev); | ||
3256 | |||
3257 | if (test_bit(HCI_MGMT, &hdev->dev_flags)) | 3255 | if (test_bit(HCI_MGMT, &hdev->dev_flags)) |
3258 | mgmt_user_passkey_request(hdev, &ev->bdaddr, ACL_LINK, 0); | 3256 | mgmt_user_passkey_request(hdev, &ev->bdaddr, ACL_LINK, 0); |
3259 | |||
3260 | hci_dev_unlock(hdev); | ||
3261 | } | 3257 | } |
3262 | 3258 | ||
3263 | static void hci_simple_pair_complete_evt(struct hci_dev *hdev, | 3259 | static void hci_simple_pair_complete_evt(struct hci_dev *hdev, |